1) How do you get the current URL in JavaScript?
A) window.location.aB) window.location.currentURL
C) window.location.search
D) window.location.href
2) You wish to place the following code inside of a loop:x++;Which of the following loops would guarantee that the code is always executed at least once?:
A) While
B) Do while
C) For
D) Goto
3) All of the following are JavaScript coding best practices EXCEPT which one?
A) Avoid using global variables.
B) Avoid using the === comparison operator.
C) Always declare local variables.
D) Avoid declaring Number, String, or Boolean objects
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here