Javascript Functions MCQ - Quiz

  • AConverts a string to an integer
  • B Converts an integer to a string
  • CConverts a string to a float
  • DNone of these
  • ASplits a string into an array of substrings
  • BJoins the elements of an array into a string
  • CRemoves whitespace from a string
  • DNone of these
  • ASorts the elements of an array in ascending order
  • B Sorts the elements of an array in descending order
  • CSorts the elements of an array in random order
  • DNone of these
  • AExtracts a part of a string
  • B Replaces a part of a string with a new string
  • CConcatenates two strings
  • DNone of these
  • AEncodes a string as a URI component
  • BDecodes a URI component as a string
  • CRemoves special characters from a string
  • Dnone of these
  • AA function that returns another function
  • BA function that takes another function as an argument
  • CA function that does both of the above
  • Dnone of these
  • A A function that is defined inside another function
  • BA function that has access to the outer function's variables
  • C A function that is bound to an object
  • DNone of these
  • A the global object
  • B the function itself
  • Cthe object that the function is a property of
  • D the object that the function is called on