Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 318 Bytes

ex_119.md

File metadata and controls

11 lines (10 loc) · 318 Bytes

Exercise 119

  • Create a new index119.js file
  • Define the following array:
const data = [42, true, function() {return 'The meaning of life is: '}];
  • If the second item from data is true then show the following output using the first and last items from the data array:
The meaning of life is: 42