First123Last
1 of 8 pages
  1. Answer
    1) JavaScript Lives in a Web Page
    2) JavaScript is not server side language. It is client side language because it is interpreted and run on the browser.
    3) It is weakly typed because it does not need to specify datatypes to declare variable (int, float, double etc) like c/c++.
    4) It is not programming language. It Interpreted language because browsers are interpret it.
    5) JavaScript is case sensitive.
    6) Semicolon(;) is optional
    7) String can be enclosed by using single quote (‘) or double quote(“”)
    8) // is used to specify single line comment and /* ... */ is used to specify multiline comment.

    Explanation: Not available 


    1. Forum
  2. Answer
    1. The role of the return statement is to provide the value of the expressions within the function.
    2. Whenever the return keyword occurs in the function it returns the value instantly as specified and end the function execution.

    Explanation: Not available 


    1. Forum
  3. Answer
    Global variable: A global variable, as the name implies, has global scope and is defined in the entire script.
    Local variable: Local variables are local to the functions in which they are defined.

    Explanation: Not available 


    1. Forum
  4. Answer
    While loop:  1. Initialization->condition->statement/increment is the sequence of while loop execution. 
    2. The while loop begins with a termination condition and keeps looping until the termination condition is met.
    3. If the condition is not true, none statement will execute within the loop because condition is checked before executing the statement.

    Do-while loop: 1. Initialization->statement/interment->condition is the sequence of do-while loop execution.
    2. Unlike the while loop, the do-while loop always executes statements in the loop in the first iteration of the loop.
    3. As the condition is checked after executing statements in the loop, at least once loop statements will be executed within the loop even if condition is false.

    Explanation: Not available 


    1. Forum
  5. Answer
    Break: "break" statement is used to exit from loop and selection structure. break statement is widely used in switch-case and loop.
    continue:

    Continue: The "continue" statement tells the interpreter to immediately start the next iteration of the loop and skip remaining code block.

    Explanation: Not available 


    1. Forum
First123Last
1 of 8 pages