This topic contains a solution. Click here to go to the answer

Author Question: Giving a local function variable the same name as a global variable will result in which of the ... (Read 48 times)

vHAUNG6011

  • Hero Member
  • *****
  • Posts: 514
Giving a local function variable the same name as a global variable will result in which of the following?
 
  a) JavaScript runtime error.
  b) Data corruption.
  c) The local function variable will rename itself.
  d) The local variable will hide the global variable.

Question 2

Script-level variables have ________ duration.
 
  a) local
  b) global
  c) automatic
  d) static



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by a Subject Expert

Edwyer

  • Sr. Member
  • ****
  • Posts: 337
Answer to Question 1

Ans: (d)

Answer to Question 2

Ans: (d)




vHAUNG6011

  • Member
  • Posts: 514
Reply 2 on: Jul 7, 2018
Thanks for the timely response, appreciate it


Mochi

  • Member
  • Posts: 300
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

Hyperthyroidism leads to an increased rate of metabolism and affects about 1% of women but only 0.1% of men. For most people, this increased metabolic rate causes the thyroid gland to become enlarged (known as a goiter).

Did you know?

It is widely believed that giving a daily oral dose of aspirin to heart attack patients improves their chances of survival because the aspirin blocks the formation of new blood clots.

Did you know?

The U.S. Preventive Services Task Force recommends that all women age 65 years of age or older should be screened with bone densitometry.

Did you know?

If you could remove all of your skin, it would weigh up to 5 pounds.

Did you know?

Multiple sclerosis is a condition wherein the body's nervous system is weakened by an autoimmune reaction that attacks the myelin sheaths of neurons.

For a complete list of videos, visit our video library