Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are some of the built-in methods in JavaScript and what are the values returned by them?
Home
JavaScript
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
Related questions
0
votes
Q: Which of the following values will be returned by the last statement in the given code?
asked
Mar 24, 2021
in
JavaScript
by
sharadyadav1986
javascript
function
0
votes
Q: What output will be returned by the function in the following code?
asked
Mar 24, 2021
in
JavaScript
by
sharadyadav1986
javascript
variable
output-code
0
votes
Q: In a case, where the value of the operator is NULL , the typeof returned by the unary operator is___.
asked
Mar 21, 2021
in
JavaScript
by
rajeshsharma
typeof-operator
unary-operator
null-operator
javascript
0
votes
Q: What are the differences between freeze and seal methods in Javascript?
asked
Oct 8, 2023
in
JavaScript
by
JackTerrance
javascript-interview-questions-answers
0
votes
Q: What are the built-in iterables in Javascript?
asked
Oct 25, 2023
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What is the main difference between Object.values and Object.entries method in Javascript?
asked
Oct 8, 2023
in
JavaScript
by
JackTerrance
javascript-interview-questions-answers
0
votes
Q: Which of them is not the looping structures in JavaScript?
asked
Oct 10, 2022
in
JavaScript
by
SakshiSharma
javascript
loop
0
votes
Q: What's the difference between event.preventDefault() and event.stopPropagation() methods in JavaScript?
asked
Jun 9, 2022
in
JavaScript
by
sharadyadav1986
event-preventdefault
event-stoppropagation
0
votes
Q: Mention how many types of variables available is LISP? Explain what are the variables that are bound, and that have values assigned to them?
asked
Mar 4, 2021
in
LISP
by
SakshiSharma
#lisp-variables
lisp-data-types
lisp-variable-bound
0
votes
Q: Mention How Many Types Of Variables Available Is Lisp? Explain What Are The Variables That Are Bound, And That Have Values Assigned To Them?
asked
Mar 2, 2021
in
LISP
by
SakshiSharma
#lisp-variables
variables
lisp
...