Javascript Online Test Questions



Select Series



Which of the following function of String object creates an HTML anchor that is used as a hypertext target?




Which of the following function of Array object extracts a section of an array and returns a new array?




Which built-in method returns the characters in a string beginning at the specified location?




Which built-in method sorts the elements of an array?




Which of the following function of String object splits a String object into an array of strings by separating the string into substrings?




Which of the following function of Array object applies a function simultaneously against two values of the array (from left-to-right) as to reduce it to a single value?




Which built-in method returns the length of the string?




Which built-in method returns the calling string value converted to lower case?




Which of the following function of String object returns the index within the calling String object of the first occurrence of the specified value?




Which of the following function of Boolean object returns a string of either 'true' or 'false' depending upon the value of the object?




Which of the following function of String object returns the calling string value converted to lower case?




Which built-in method calls a function for each element in the array?




Which of the following function of String object causes a string to be displayed as a subscript, as if it were in a <sub> tag?




Which of the following is correct about callbacks?




Which of the following function of String object causes a string to be displayed in the specified color as if it were in a <font color='color'> tag?




Which of the following is a valid type of function javascript supports?




Can you pass a anonymous function as an argument to another function?


Which of the following is the correct syntax to print a page using JavaScript?




Which of the following function of String object causes a string to be displayed in fixed-pitch font as if it were in a <tt> tag?




Which of the following is an advantage of using JavaScript?