JavaScript 101


A simple yet Indepth look into the marvellous language on web




What we need JavaScript ? 


Early Web



All DATA MUST COME FROM SERVER !




Drawbacks 


- Super Slow
- Super Costly
- Super Insane




Lets do some tricks on

 the page itself


(Who knew that the language intended to interact
with webpages will end up controlling robots, yikes !)

MODERN WEB BROWSER 




This is what turns ugly code to gorgeous usable interfaces

DOM & DOM TREE




Javascript was intended to handle this !

 

JavaScript 

&

Java 


Are light years apart

JavaScript 



Lets try doing a hello world !
console.log("hello world"); 


Perhaps lets try out some numbers 
 var a = 0;
 var b = 2;
 
 console.log( a + b );

Syntax looks like C no ?






Variables & Data Types 


Like Java everything here is an object, 
but unlike java we are not POOP

more into the code


Iterators  and Control Flows


Functions


Function Patterns


Classes & Objects 




interacting with DOM 

Like a boss !

Made with Slides.com