C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
JavaScript TypedArray values() MethodThe JavaScript values() method is used to define the value of the contents in the array. Syntax:
array.values() Parameters:
No parameters Return value:Index value Browser Support:
Example 1
JavaScript TypedArray values() Method. Output: 1 Example 2JavaScript TypedArray values() Method. Output: 3 Example 3JavaScript TypedArray values() Method.
<script>
//JavaScript to illustrate types() method
var A = new Uint8Array([ 1,3,4,5,6,7,8,9 ]);
// Calling array.values() method
var JavaTpoint = A.values();
JavaTpoint.next()
JavaTpoint.next()
JavaTpoint.next()
JavaTpoint.next()
JavaTpoint.next()
JavaTpoint.next()
JavaTpoint.next()
JavaTpoint.next()
document.write(JavaTpoint.next().value);
// expected output:undefined
</script>
Output: Undefined
Next TopicJavaScript TypedArray Object
|