Skip to content

Instantly share code, notes, and snippets.

@codepb
codepb / ecmascript-challenges.md
Last active September 17, 2018 10:57
ECMAScript Challenges

ECMAScript Challenges

The following are short little puzzles designed to introduce you to new features in ECMAScript you may not yet have come across. Please lookup the new features where you aren't sure. This link is a good place to start.

You can answer the questions in an online JS editor (please use chrome to ensure all JS features required are available). We have set one up for you (it contains a writeOutput function used in some questions below. Please replace this with your own solution if you use something else). Please fork the example so you have a clean copy to work on.

1. Arrays

  1. Given the following array: