Ask Question

Injа vascript, a variable declaration is

? Optional

? Mandatory

? Not allowed

? None of the given

+5
Answers (1)
  1. 14 May, 10:42
    0
    Optional

    Explanation:

    Variable declaration means when you declaring a variable in the code, whenever you want to use a variable you should declare it or define the variable with come constant.

    Example

    var name;

    The variable has no value after the statement (technically it has undefined value). Declaring a variable without var keyword is not recommended. An current global variable may accidentally be overwritten.

    Example

    a=2;

    The range of variables declared without var keywords becomes global regardless of where they are declared
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Injа vascript, a variable declaration is ? Optional ? Mandatory ? Not allowed ? None of the given ...” 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