Created
July 31, 2020 22:09
-
-
Save Ifycode/e5833f545cab80bc61da993bb5b69569 to your computer and use it in GitHub Desktop.
Embed for Understanding Regular Function & Converting To Arrow Function Article index.js file - Js example 6
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'; | |
//arrow function with parameters | |
let sameFunction = (num3, num4) => { | |
let displayBox = document.getElementById('displayBox'); | |
displayBox.innerHTML = `${num3} + ${num4} = ${num3+num4}`; | |
} | |
sameFunction(3, 4); | |
//output: 3 + 4 = 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment