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.
 
 
 
 
 
 

1011 B

🌟 Virus19 🦠

In the previous lessons you have seen some examples of values reassignement along the way. Here are two more examples:

let mainHouse = { door: 'blue' }
let acidHouse = { door: 'blue' }

mainHouse = 'destroyed'
acidHouse.door = 'red'

First, the object mainHouse has been replaced by the string destroyed.

Second, the door of acidHouse has been repainted with the color red.

You will now have to find a way to prevent this... A way of "freezing" your objects if you will...

Object.freeze

Instructions

Level 4 Alert! A very smart virus19 has escaped the laboratory! You have 5 mins to fight this virus on two fronts:

  • First freeze the object virus19 so that it cannot mutate!
  • Then release the countermeasure by declaring vaccine which will be a secure copy of the object antivirus.

Our Business Is Life Itself
― Umbrella Corporation's slogan