JavaScript Functions The Arrow Function This example shows an Arrow Function without the brackets or the return keyword. let hello = ""; hello = () => "Hello World!"; document.getElementById("demo").innerHTML = hello(); ...
Exercise:JS Arrow Function Try Again YesNo Next Exercise » Which one of the following is a correct JavaScript arrow function? greeting => 'Hello World!'; greeting = return => 'Hello World!'; greeting = () => 'Hello World!';
JavaScript Functions This example shows the syntax of a function, without the use of arrow function syntax. let hello = ""; hello = function() { return "Hello World!"; } document.getElementById("demo").innerHTML = hello(); ...