কম্পিউটার টিউটোরিয়াল

জাভাস্ক্রিপ্টে TypedArray.join() ফাংশন

TypedArray.join() ফাংশনটি টাইপড অ্যারে-এর সব এলিমেন্ট একটি স্ট্রিং-এ যুক্ত করে (ডিফল্ট কমা দিয়ে)। ঐচ্ছিক সেপারেটর দেওয়া যায়।

সিনট্যাক্স

typedArray.join([separator])

উদাহরণ

<html> <head>    <title>JavaScript TypedArray join</title> </head> <body>    <script type="text/javascript">       var int32View = new Int32Array([21, 19, 65, 21, 14, 66, 87, 55]);       document.write("Default: " + int32View.join());       document.write("<br>");       document.write("Colon: " + int32View.join(':'));       document.write("<br>");       document.write("Dash: " + int32View.join('-'));       document.write("<br>");       document.write("Space: " + int32View.join(' '));    </script> </body> </html>

আউটপুট

Default: 21,19,65,21,14,66,87,55
Colon: 21:19:65:21:14:66:87:55
Dash: 21-19-65-21-14-66-87-55
Space: 21 19 65 21 14 66 87 55
  1. জাভাস্ক্রিপ্টে TypedArray.filter() ফাংশন

  2. জাভাস্ক্রিপ্টে TypedArray.toString() ফাংশন

  3. জাভাস্ক্রিপ্টে TypedArray.values() ফাংশন

  4. জাভাস্ক্রিপ্টে অ্যারে ফাংশন আর্গুমেন্ট হিসেবে পাস করার পদ্ধতি