Created
December 13, 2021 12:28
-
-
Save tlcheah2/2ebf64c0b7f6f7f13006e51b9d516128 to your computer and use it in GitHub Desktop.
A simple example for side effect solution
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
let finalOuput; | |
function multiplyByTwo(inputNumber) { | |
const result = inputNumber * 2; | |
return result; | |
} | |
finalOuput = multiplyByTwo(6); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment