Ask Question
21 October, 10:38

Var x = 50; var y = 15; What is the value of the y variable?

+2
Answers (1)
  1. 21 October, 13:48
    0
    The variable y is declared in jа vascript and assigned a value of 15. The value assigned is an integer. The value of y variable is definitely 15.

    Explanation:

    What you wrote is a representation of a jа vascript code. A variable is declared with the keyword var in jа vascript. A variable must have a unique name

    In programming terms a variable is a container for storing a value. One can assign a value to a variable using an equal to sign (=) in jа vascript's.

    var x = 50;

    var y = 15;

    The variable x is declared in jа vascript and assigned a value of 50. The value assigned is an integer. The semi colon (; ) is used to end statements in jа vascript. It is not compulsory to end statement with semi colon but it is recommended.

    The variable y is declared in jа vascript and assigned a value of 15. The value assigned is an integer. The value of y variable is definitely 15.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Var x = 50; var y = 15; What is the value of the y variable? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers