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 99 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
Wow, this really help


Missbam101

  • Member
  • Posts: 341
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

The types of cancer that alpha interferons are used to treat include hairy cell leukemia, melanoma, follicular non-Hodgkin's lymphoma, and AIDS-related Kaposi's sarcoma.

Did you know?

Colchicine is a highly poisonous alkaloid originally extracted from a type of saffron plant that is used mainly to treat gout.

Did you know?

More than 4.4billion prescriptions were dispensed within the United States in 2016.

Did you know?

In 1885, the Lloyd Manufacturing Company of Albany, New York, promoted and sold "Cocaine Toothache Drops" at 15 cents per bottle! In 1914, the Harrison Narcotic Act brought the sale and distribution of this drug under federal control.

Did you know?

Blood is approximately twice as thick as water because of the cells and other components found in it.

For a complete list of videos, visit our video library