Login
Remember
Register
Ask a Question
What are some of the built-in methods in JavaScript and what are the values returned by them?
0
votes
asked
Sep 19, 2021
in
JavaScript
by
sharadyadav1986
What are some of the built-in methods in JavaScript and what are the values returned by them?
built-in-methods
javascript-methods
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 19, 2021
by
sharadyadav1986
Some of the built-in methods in JavaScriptnand the values returned by them are:
Concat() helps to join two or more than two strings
CharAt() helps to return the character at the specific index
forEach() helps to call a function for each element present in the array
length() helps to return the length of the string
indexOf() helps in returning the index within the calling String object of the first Occurrence of the specific value
push() helps to add one or more than one element to the end of an array and then return the new length of that array
pop() helps to remove the last element from an array and return that element
reverse() helps to reverse the order of elements of an array
...