Modern JavaScript
Explore modern JavaScript features including const, let and arrow functions.
What you should understand
Read the lesson carefully, study the example, then use the editor below to experiment with the code yourself.
const add = (a, b) => a + b; console.log(add(5, 10));
Output
See what your code produces.
Test your understanding
Choose the best answer.
Which method can select an element by its ID?