1) How do you get the current URL in JavaScript? A) window.location.a B) window.location.currentURL C) window.location.search D) window.location.href

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter5: The Repetition Structure
Section: Chapter Questions
Problem 1MQ8
icon
Related questions
Question

1) How do you get the current URL in JavaScript?

A) window.location.a
B) 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

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning