Ask Question
31 March, 23:07

Injа vascript, a variable declaration is

? Optional

? Mandatory

? Not allowed

? None of the given

+4
Answers (1)
  1. 1 April, 02:44
    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 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