Results 1 - 2 of 2

Loops and iteration

Loops offer a quick and easy way to do something repeatedly. This chapter of the JavaScript Guide introduces the different iteration statements available to JavaScript.
Guide JavaScript Loop Syntax

Method definitions

Starting with ECMAScript 2015 (ES6), a shorter syntax for method definitions on objects initializers is introduced. It is a shorthand for a function assigned to the method's name.
ECMAScript6 Functions JavaScript Object Syntax