Ask Question
8 November, 10:58

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

+3
Answers (1)
  1. 8 November, 11:20
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers