Skip to content

Instantly share code, notes, and snippets.

@artem-alek
Created January 31, 2017 14:19
Show Gist options
  • Save artem-alek/35945a427085eeb98585bc8320ae7027 to your computer and use it in GitHub Desktop.
Save artem-alek/35945a427085eeb98585bc8320ae7027 to your computer and use it in GitHub Desktop.
Secition 1:
1. Console.log(....), if, else
2. No, because the if else statment will always stop at the first condition.
Section 2:
1. The document is your html file that the .js file is linked to. It is in scope if the variable in the function is not returned.
2. The whole tag that the ID is set too. The whole html raw line.
3. .value for input commands only, rest is uses .innerHTML.
Section 3:
1. answer will be (30,2)
2. undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment