Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Samual Sam has Published 2310 Articles
Samual Sam
90 Views
The values() function of the TypedArray returns an iterator object which holds the values of the typed array. The next() method returns the next element in the iterator object.SyntaxIts Syntax is as followstypedArray.values()Example Live Demo JavaScript Example var typedArray = new Int32Array([11, ... Read More
Samual Sam
81 Views
The toString() function of the TypedArray object returns a string representing the contents of the typed array.SyntaxIts Syntax is as followstypedArray.toString();Example Live Demo JavaScript Example var typedArray = new Int32Array([111, 56, 62, 40, 75, 36, 617, 2, 139, 827 ]); ... Read More
Samual Sam
51 Views
The find() function of TypedArray accepts a string value representing the name of a function, tests whether the elements in the array passes the test implemented by the provided function, if so, returns the first element which passes the test else, returns undefined.SyntaxIts Syntax is as followstypedArray.find(function_name)Example Live Demo ... Read More
Samual Sam
58 Views
The forEach() function of TypedArray object accepts a string value representing the name of a function and executes it per every element in the array.SyntaxIts Syntax is as followstypedArray.forEach()Example Live Demo JavaScript Array every Method var int32View = new Int32Array([21, 19, 65, ... Read More
Samual Sam
599 Views
Use the replace() method to replace a specific character with another. Let’s say the following is our string and here we are replacing a whitespace with a $ character.String str1 = "Orange is the new Black!";Now, use the replace() method to replace a character with $str1.replace(' ', '$');Example Live Demopublic class ... Read More
Samual Sam
89 Views
The indexOf() function of the TypedArray object accepts a value and verifies whether the typed array contains the specified element. If so, this function returns the index of the array at which the specified element found, if the element occurred multiple timed this function returns the first index among them. ... Read More
Samual Sam
67 Views
The keys() function of typedArray object is similar to entries but, it returns an iterator object containing the indices of the typed array.SyntaxIts Syntax is as followstypedArray.keys()Example Live Demo JavaScript Array every Method var int32View = new Int32Array([21, 64, 89, 65, 33, ... Read More
Samual Sam
449 Views
Let’s say the following is our string.THIS IS DEMO TEXT!Here, to replace every occurrence of ‘I’ with ‘E’, use the replace() method.str.replace('I', 'E'));The following is the complete example to replace all occurrences of a given character with new character.Example Live Demopublic class Demo { public static void main(String[] args) { ... Read More
Samual Sam
68 Views
The map() function of the TypedArray object accepts the name of a function and calls it on every element of the typed array and returns the results.SyntaxIts Syntax is as followstypedArray.map()Example Live Demo JavaScript Array every Method var int32View = new Int32Array([11, ... Read More
Samual Sam
1K+ Views
The array is cyclically rotated clockwise by one. This means that each of the array elements are displayed to the right by one and the last element ends up as the first element. An example of this is given as follows.Original array = 1 2 3 4 5 6 7 ... Read More