JavaScript: A Crash Course – Core Language Syntax

JavaScript tutorial (syntax). com http://www w3schools / js /. hEmbedding JavaScript in HTML, , Loading Scripts, script with body content, Example (phish.js), Example (loading-scripts.html), Loading Scripts: Special Cases, Internet Explorer bug, XHTML: Scripts with body content

More PDF Content

JavaScript: A Crash Course Part I: Core Language Syntax
Originals of Slides and Source Code for Examples:
Taught by the author of Core Servlets and JSP
JavaScript references
Embedding in browser
Basic syntax
Strings and regular expressions
Introduce with “var”
You do not declare types
There are only two scopes
Operators and Statements
Almost same set of operators as Java
Conditionals and Simple Loops
Basic for loop
while loop
do/while loop
Array Basics
One-step array allocation
Two-step array allocation
Indexed at 0 as in Java
Other Conditionals and Loops
for/in loop
More on Arrays
Arrays can be sparse
Arrays can be resized
Arrays have methods
Regular objects can be treated like arrays
Arrays Example
Array Performance
The Math Class
Almost identical to Java
Strings and
Regular Expressions
String Basics
You can use double or single quotes
You can access length property
Numbers can be converted to strings
Strings can be compared with ==
Strings can be converted to numbers
Core String Methods
Simple methods similar to Java
Methods that use regular expressions
HTML methods
Regular Expressions
You specify a regexp with /pattern/
Most special characters same as in Java/Unix/Perl
Regular Expression: Examples
Not similar to Java
Main differences from Java
Passing Functions: Example
Anonymous Functions
Optional Args: Summary
Fixed number of optional args
Arbitrary args
Optional args via anonymous object
Optional Args: Details
You can call any function with any number fo arguments
Optional Arguments
Properties (instance variables)
The prototype Property
Class-level properties
Pseudo Inheritance
Objects: Example (Updated Circle Class)
Rolling Your Own Namespace
Namespaces in Real Applications
JSON (JavaScript Object Notation)
JSON: Example
Using JSON for Optional Arguments
Using JSON for Optional Arguments: Example Code
Using JSON for Optional Arguments: Example Results
Internet Explorer and Extra Commas
Firefox tolerates trailing commas in both JSON and arrays
Other Object Tricks
The instanceof operator
The typeof operator
Adding methods to builtin classes

Download JavaScript: A Crash Course - Core Language Syntax pdf from, 28 pages, 2468.03KB.
Related Books

3 Responses to “JavaScript: A Crash Course – Core Language Syntax”

  1. birkenstock sandals Sunglasses outlet sale pandora charms sale Nike Air Jordan Enfants ray ban erika Air Jordan Retro 3 Nike Schuhe coach factory outlet puma outlet online under armour outlet Nike Air Force China wholesale kate spade bags canada goose outlet Nike Air Max 2017 celine outlet online ua shoes Wholesale womens autumn winter clothing hermes belt kate spade tạp chí ẩm thực qiqi fashion Air Max 90 Femme Cartier Watches michael kors uk Longchamp outlet fake sunglasses pandora charms outlet Nike Air Max 1 official chrome hearts michael kors uk ray ban sunglasses burberry factory outlet oakley australia michael kors uk online Add Your Link Free Nike Dunk SB Low jewellery online north face sale outlet sunglasses louis vuitton bags 80′s Fashion school bags online sale Nike Air Max pandora charms seiko watches rayban prescription sunglasses pandora charms kate spade tory burch outlet michael kors outlet online Nike Air Jordan enfants Abercrombie Fitch casio watches pandora earrings Promise Rings – Official burberry outlet kate spade yeezy boost 350 Chanel Outlet Watches birkenstock outlet yeezy boost 350 shoes clearance Jordan Flight 45 Femme evbid coach bags michael kors outlet online louis vuitton outlet pandora charms michael kors shop australia Michael Kors Outlet prada sale michael kors outlet sale burberry ray ban clubmaster sunglasses Air Jordan 10 The Retail Compliance Association ray-ban eyeglasses NIKE Schuhe Shop Nike Air Jordan Enfants Air Max 95 Nike Air Jordan Enfants black friday pandora outlet hermes bag swatch watch coach factory outlet prada outlet woodbury jimmy choo australia kate spade cabada Jewelry Armoire – Official kate spade australia kanye west shoes Coach Factory Outlet Coach Bags Outlet louis vuitton outlet online payless shoes sunglasses Kruz-graphix coach factory outlet coach australia online sale Lisinopril 10mg Us nike outlet jimmy choo michael kors outlet ray ban sale puma outlet katespade outlet nike running shoes cheap ray ban michael kors outlet online populaire Nike Lunarmax pandora charms Air Max 180 kate spade collection Nike Air Max 2017 burberry bags outlet abercrombie canada Nike Shox R3 louis vuitton outlet ray ban shop michele watch tory burch outlet michael kors outlet online michael kors shoes kate spade bags ugg outlet prada outlet online lzm2.5

Leave a Reply