1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Leni [432]
3 years ago
10

After the following code runs, what will be the value of result? var x = 30; function get () { return x; } function set (value)

{ x = value; } set(10); var result = get(20);
Computers and Technology
1 answer:
PilotLPTM [1.2K]3 years ago
5 0

Answer:

Null

Explanation:

It entirely depends on the language you are using to implement this.

But generally by the rule of scope, "result" will return null since get() was not defined to accept any argument, and it neither know the global "x" not defined it's own x in the function.

You might be interested in
Only business writing requires an editing stage
s344n2d4d5 [400]

What is your question exactly?

5 0
3 years ago
Deep water can ____.
Hoochie [10]
D. Stall your vehicle
5 0
3 years ago
Read 2 more answers
Help me please, I'm attempting a test<br>​
dusya [7]
It’s A it’s a keyboard
8 0
3 years ago
Read 2 more answers
How to save pictures on a chromebook without right-click
grin007 [14]

screen shot is easier

4 0
3 years ago
Jessica has two pens, one red pen and a black pen. The red pen measures 5 inches while the
Nezavi [6.7K]

Answer:

1.

A) 12.7

B) 6

C) The black pen

2.

A) 2000

B) 3

C) Sally

D) They rode 1 kilometers farther

E) They rode 1000 meters farther

3.

A) 17.78

B) 25.4

8 0
3 years ago
Read 2 more answers
Other questions:
  • The salesperson in a cell phone store is telling me that the phone I'm considering has 8GB of memory, which means I can save 10,
    13·1 answer
  • Differentiate between computer organization and computer architecture with example
    6·1 answer
  • Website hosting servers have their own unique IP address, what does this address consist of?
    8·1 answer
  • What does the measurement tell you?<br><br> Schedule performance index
    9·1 answer
  • Although saying "Cylinder IS A Circle" doesn't make sense, it can be implemented in Java using inheritance in a legitimate way.
    9·1 answer
  • 1. Empty tags do not have ___________.
    14·1 answer
  • Zahra's softball team needs money for team T-shirts. The coach makes some fundraising suggestions, while team members brainstorm
    5·2 answers
  • Select three advantages of cloud computing.
    12·1 answer
  • Help pls nnnnnnnnnnnnnnnnnnnn
    15·1 answer
  • Which of the four digital-to-analog conversion techniques (ASK, FSK, PSK or QAM) is the most susceptible to noise? Defend your a
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!