JavaScript Basics
1. Introduction to JavaScript :
- Is a programming language to make web pages interactive
- Ex : make buttons work , show messages , change color img text , validate format ,
create animation , send /receive data from servers .
- It can run in : the navigator / the server ([Link]) / javascript engine :
V8(chrome&opera) , spidermonkey (firefox)
- Name : javascript / livescript
[Link] to insert javascript :
recommented for big projects
Javascript statements :
Semicolons are optional BUT recommended
Semicolons are required if you want to put more than one statement on a single
line .
JS variables :
this is fucnction-scoped
Primitive data types :
Hold one value
Composite data types :
They are big containers that can hold many values together
JS operators :
Dialog boxes :
- Are small pop-ups that appear in the browser
-
-
Conditional and loop statements ;
Javascript functions :
..