Created
April 21, 2020 12:48
-
-
Save essamamdani/a20f2808d2ec1d6e2971669647ead950 to your computer and use it in GitHub Desktop.
These types of comments can also be used when you want to test some functionality like you created a function but comment that out and create one more with a slight difference to check the working.
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
<script> | |
var a = 2; | |
var b = 7; | |
var c = 2; | |
document.write("Answer is " + sum()); | |
/* function sum(){ | |
return a+b; | |
} */ | |
function sum(){ | |
return a+b+c; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment