Javascript Function Arrow Function with default parameter

Description

Javascript Function Arrow Function with default parameter

'use strict';/*ww  w .java  2 s . co  m*/

var f = (x = 10) => x * x;

console.log(f());  // 100



PreviousNext

Related