Skip to content

gallery

My Photos

  • About
  • Blog
  • Home
  • Knowledge Base
  • AirNav..
  • Front Page
Posted on December 5, 2018 by

Arrow Functions {}

<!DOCTYPE html>
<html>
<body>

<h2>JavaScript Arrow Functions</h2>

<p>Arrow functions are not supported in IE11 or earlier.</p>

<p id=”demo”></p>

<script>
const x = (x, y) => { return x * y };
document.getElementById(“demo”).innerHTML = x(5, 5);
</script>

</body>
</html>

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook

Related

CategoriesUncategorized

    Post navigation

    Previous PostPrevious Arrow Functions
    Next PostNext Vue Fetch(url)

    Categories

    • airnav (1)
    • Git (1)
    • Honda Civic (1)
    • Java Spring (1)
    • JavaScript ES6 (3)
    • Music (4)
    • NextShow (1)
    • Node (1)
    • PHP (1)
    • Security+ Test Prep (1)
    • Stock Elections (1)
    • SY0-401-C1-Mastering Security Basics (1)
    • Uncategorized (13)
    • Watu Quiz (1)
      • Security+ (1)
    Proudly powered by WordPress