Sunteți pe pagina 1din 21

JS

LESSON#1
J AVA S C R I P T F U N D A M E N TA L S

WELCOME TO THE COURSE


Instructor : Muhammad khurram adeel
Software Engineer VIII
9 Years of Experience in software development
Khurram.adeel@seventechnology.co.uk

WHAT IS JAVA SCRIPT?


JavaScript (JS) is a lightweight, interpreted, programming language
JavaScript adds interactivity to web pages
Also available on many non-browser environments such as node.js and
Apache CouchDB.

WHAT IS JAVASCRIPT?
prototype-based
multi-paradigm
dynamic scripting language
supports object orientation
imperative
functional programming styles

HISTORY
Brendan Eich
Born 1961
Founder of JavaScript
Cofounded Mozilla project, Mozilla Foundation
And Mozilla Corporation
CTO of Mozilla Corporation
CEO Brave Software

HISTORY
1995 Brendan eich created mocha for netscape communications in 10 days
Mocha later named to Livescript
Livescript later named to JavaScript

WHY SHOULD I LEARN JAVASCRIPT?


Major building block of web
The most powerful language on web
Almost each webpage uses JavaScript
To make your page interactive

ECMA
European computer manufacturers association
International private non profit standards organization
Defines standards for communication and information systems
www.ecma-international.org

ECMASCRIPT
Scripting language specification standardized by ECMA international
Based on JavaScript

JavaScript is the language that gets its syntax


based on ECMASCRIPT specifications.

GET HANDS DIRTY


<script>
var hello = function()
{
alert(Hello World!);
};
hello();
</script>

SYNTAX
Case sensitive
Every statement ending in semicolon

PRIMITIVE TYPES
Number
String
Boolean
Undefined
Null

NON PRIMITIVE TYPES

TYPEOF OPERATOR

NAN

LA ZY EVALUATION

== VS ===
1=== 1
1 == 1

false
true

ARRAYS []
Push
Pop
Splice
Delete

LOOPS

FOR-IN LOOP

FOREACH LOOP

S-ar putea să vă placă și