Download presentation
Presentation is loading. Please wait.
1
Introduction To JavaScript
Imran Rashid CTO at ManiWeber Technologies
2
Outline The History of JavaScript
Browser Console & Your First JavaScript Program JavaScript Inclusions Comments & Printing Mechanisms The dot (.) syntax & Objects Statements & Automatic Semicolon Insertion (ASI) JavaScript Grammar Data Types & Functions Operators (unary, binary, & ternary) & Type Coercion String Properties and Methods Number Methods
3
The History of JavaScript
4
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
5
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)
6
The History of JavaScript
Scripting Languages Interpreted high-level languages that are translated into machine code at run time are often referred to as scripting languages They typically run slower than compiled languages Although interpreters are becoming more and more sophisticated, increasingly blurring the line between compiled and interpreted languages The ECMAScript standard can be difficult to interpret in places, so the implementations of JavaScript can vary in assorted JavaScript engines This is why some web browsers behave differently when running JavaScript programs
7
Browser Console & Your First JavaScript Program
8
JavaScript Inclusions
9
Comments & Printing Mechanisms
10
The dot (.) syntax & Objects
11
Statements & Automatic Semicolon Insertion (ASI)
12
JavaScript Grammar
13
Data Types & Functions
14
Operators (unary, binary, & ternary) & Type Coercion
15
String Properties and Methods
16
Number Methods
17
JavaScript - Novice to Ninja (Chapter 1 & 2) Fiddle:
REFERENCES Book: JavaScript - Novice to Ninja (Chapter 1 & 2) Fiddle: Internet: Youtube:
18
Any ?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.