Welcome to the quiz! Try to answer those questions, which cover the topics of this module.

  • write the code needed to create a shallow copy of a const car = { color: blue } object
  • write the code needed to compare two objects
  • take the car object above and write the code needed to make its color property read only, not editable
  • Take the const car = { color: blue } object and transform it into a string in the JSON notation. Then parse it back again to an object.
  • Use the Intl functions to format the number 10 so it’s representing a $10 bill, and then format it to represent a 10€ bill
  • Take the string “JavaScript is amazing” and generate a new string with the text “JavaScript”, cutting the unneeded part
  • Write 2 different ways to take the string “JavaScript is amazing” and generate a new string with the text “ama”, cutting the unneeded parts
  • Create a function that returns the maximum value between 4 multiplied 5 times and the square root of 130. All using the Math functions
  • Create a regular expression that extracts a number from a string
  • Create a regular expression that checks if a string contains the word “dog”
  • Create a regular expression that counts the number of times the word “dog” appears
  • write a function that accepts a string as input, checks if there is a number in the string, and extracts it as a number value
  • given the list of syntax errors, do you remember seeing some of them appear in your code? If not, which ones do you think you will encounter the most during your job?
  • what is Infinity in JavaScript?

Go to the next module