You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

901 B

Declarations

Instructions

Create the following constant variables:

  • escapeStr, that contains the following specials characters: `, \, /, ", '
  • arr that is an array containing the values 4 and '2'
  • obj that is an object containing a property for each primitives:
    • str for String
    • num for Number
    • bool for Boolean
    • undef for undefined
  • nested that contains
    • arr: an array of the 3 values: 4, undefined, '2'
    • obj: an object with 3 property (str, num & bool)

nested, arr and obj must be frozen to prevent changes from them.

Notions