Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 550 Bytes

ex_148.md

File metadata and controls

13 lines (12 loc) · 550 Bytes

Exercise 148

  • Create a new index148.js
  • Define a superhero variable and assign a literal object
  • Create the following properties and values to the superhero object:
  • property: name, value: Batman
  • property: secretName, value: Bruce
  • property: sidekick, value: ['Robin', 'Alfred', 'Gordon']
  • property: strength, value: 70
  • Show each superhero property as output
  • Show the superhero speed property
  • Now add the speed property to the superhero object using dynamic property and assign the value 80
  • Show the superhero speed property again