JS Lesson#1: Java Script Fundamentals
JS Lesson#1: Java Script Fundamentals
LESSON#1
J AVA S C R I P T F U N D A M E N TA L S
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
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
SYNTAX
Case sensitive
Every statement ending in semicolon
PRIMITIVE TYPES
Number
String
Boolean
Undefined
Null
TYPEOF OPERATOR
NAN
LA ZY EVALUATION
== VS ===
1=== 1
1 == 1
false
true
ARRAYS []
Push
Pop
Splice
Delete
LOOPS
FOR-IN LOOP
FOREACH LOOP