Introduction To JavaScript
Imran Rashid
CTO at ManiWeber Technologies
Introduction to JavaScript Imran Rashid
Outline
The History of JavaScript
The dot (.) syntax & Objects
Browser Console & Your First JavaScript Program
JavaScript Inclusions
Statements & Automatic Semicolon Insertion (ASI)
Comments & Printing Mechanisms
JavaScript Grammar
Data Types
Operators (unary, binary, & ternary) & Type Coercion
String Properties and Methods
Number Methods
Introduction to JavaScript Imran Rashid
The History of JavaScript
The History of JavaScript
The World Wide Web was originally a bunch of pages
linked together by hyperlinks
Soon people wanted more interaction and so Netscape
(an early browser vendor) asked Brendan Eich to develop
a new language for their Navigator browser
This needed to be done quickly because of the intense
competition between Netscape and Microsoft to be first
to market, and Eich managed to create a prototype
language in just ten days
The new language was originally called LiveScript, but
was hastily rebranded as JavaScript so that it could
benefit from the publicity that the Sun Microsystem’s
Java language was attracting at the time
Introduction to JavaScript Imran Rashid
The History of JavaScript
This name has often caused some unfortunate confusion,
with JavaScript often thought of as a lighter version of
Java; the two languages are unrelated, although
JavaScript does share some syntax with Java
JavaScript made its debut in version 2 of Netscape’s
Navigator browser in 1995
The following year, Microsoft reverse-engineered
JavaScript to create their own version, called JScript to
avoid copyright issues with Sun who owned the Java
trademark and had licensed it to Netscape
Remember:
JavaScript is a client side, interpreted, & loosely typed
scripting language which runs on browser (client)
Introduction to JavaScript Imran Rashid
The dot (.) syntax & Objects
Browser Console & Your First JavaScript Program
JavaScript Inclusions
Statements & Automatic Semicolon Insertion (ASI)
Comments & Printing Mechanisms
JavaScript Grammar
Data Types
Operators (unary, binary, & ternary) & Type Coercion
String Properties and Methods
Number Methods
REFERENCES
Book:
JavaScript - Novice to Ninja (Chapter 1 & 2)
Fiddle:
https://jsfiddle.net/
Internet:
https://www.tutorialspoint.com/javascript/
https://www.w3schools.com/js/
Youtube:
https://www.youtube.com/watch?v=M-
za4RV3ABU&list=PLHZw8ZFkvcjcFiyp5Q45H28VSnqGD26Rt
Introduction to JavaScript Imran Rashid
Any ?