Curriculum
Course: JavaScript Basic
Login

Curriculum

JavaScript Basic

JSHome

0/216
Text lesson

Arrow Function With Parameters:

hello = (val) => “Hello “ + val;

In fact, if you have just one parameter, you can omit the parentheses altogether.

Arrow Function Without Parentheses:

hello = val => “Hello “ + val;