View on GitHub

reading-notes

What is JavaScript ?

Is the programming language of the Web, enables you to create daynamic updating content, control multimedia, animate images and pretty everythings, it executed line by line and have the .js extension.


## Variables :

Can store data in variables.

Syntax

var VarName(should be a valid identifier) = variable value ;


## JavaScript Data Types :


JavaScript Output :


JavaScript Comments :

Using comments to prevent execution

Window prompt() Method :

Display a prompt box which ask the user for anythings like name , age , etc .

var fname= prompt("Please enter your name", "your name");

JavaScript if else :

Are used to do different actions based on different conditions.

if(condition==true)
{
    // do some thing if true 

    else
    {
       // do some thimg if not true 
    }
}