Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Last active October 18, 2021 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McLarenCollege/2f1ba45d34a6be28b1f9f8b64e855f8c to your computer and use it in GitHub Desktop.
Save McLarenCollege/2f1ba45d34a6be28b1f9f8b64e855f8c to your computer and use it in GitHub Desktop.
Exercise : Array Operation
  • You are given an array.
let arr = ['Blah',false,true,'Hello',7];
  • If the second element of arr is true, print the third element, otherwise print the fourth element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment