The JavaScript Quiz

Test Your JavaScript Knowledge

Q1. JavaScript is a _______ language.

programming scripting
markup none of the above
Correct.

Q2. Which of the following is an advantage of using JavaScript?

Less server interaction Immediate feedback to the visitors
Increased interactivity All of the above
Correct.

Q3. Which built-in method combines the text of two strings and returns a new string?

append() concat()
attach() None of the above
Correct.

Q4. Which of the following function of Number object forces a number to display in exponential notation?

toExponential() toFixed()
toPrecision() toLocaleString()
Correct.

Q5. Which of the following function of String object returns the character at the specified index?

charAt() charCodeAt()
concat() indexOf()
Correct.

Q6. Which of the following function of String object is used to match a regular expression against a string?

concat() match()
search() replace()
Correct.

Q7. Which of the following function of String object returns a string representing the specified object?

toLocaleUpperCase() toUppercase()
toString() substring()
Correct.

Q8. Which of the following function of String object creates an HTML hypertext link that requests another URL?

link() sub()
sup() small()
Correct.

Q9. Which of the following function of Array object calls a function for each element in the array?

concat() every()
filter() forEach()
Correct.

Q10. Which of the following function of Array object returns true if at least one element in this array satisfies the provided testing function?

reverse() shift()
slice() some()
Correct.