Ask Question
26 January, 21:07

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

+2
Answers (1)
  1. 26 January, 21:27
    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?
Find an answer to your question 👍 “Var x = 50; var y = 15; What is the value of the y variable? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers