<html>
<body>
<h1>Arrow Function</h1>
<p>As you can see in this example, you can skip the parentheses when you have only one parameter.</p>
<p id="demo"></p>
<script>
hello = val => "Hello " + val;
document.getElementById("demo").innerHTML = hello("World");
</script>
</body>
<!-- Mirrored from www.w3schools.com/react/tryit.asp?filename=tryreact_es6_arrow4 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:43:09 GMT -->
</html>