Created
July 31, 2020 21:46
-
-
Save Ifycode/5930083ac242e68b2ef75be048a72d76 to your computer and use it in GitHub Desktop.
Embed for Understanding Regular Function & Converting To Arrow Function Article index.js file - Js example 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
//Anonymous function stored in a variable | |
let sameFunction = function () { | |
let displayBox = document.getElementById('displayBox'); | |
let num3 = 3; | |
let num4 = 4; | |
displayBox.innerHTML = `${num3} + ${num4} = ${num3+num4}`; | |
} | |
sameFunction(); | |
//output: 3 + 4 = 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment