Exploring Java Script - Introduction to Java Script - Lecture Slides, Slides of Javascript programming

Here is my collection on JavaScript lectures. It includes tutorials as well as general concepts explanations. Particularly these slides contain: Exploring Java Script, Low-Level Print, Document, Html Tag, Syntax Errors, Seeing the Error, Console Logging, Variable Names, Assignment Operators, Determining Type

Typology: Slides

2013/2014

Uploaded on 01/29/2014

surii
surii 🇮🇳

3.5

(13)

121 documents

1 / 48

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Exploring JavaScript
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30

Partial preview of the text

Download Exploring Java Script - Introduction to Java Script - Lecture Slides and more Slides Javascript programming in PDF only on Docsity!

Exploring JavaScript

Hello World

One Paragraph

Your browser doesn't support or has disabled JavaScript.

Second Paragraph

js-01.htm

Hello World

One Paragraph

Your browser doesn't support or has disabled JavaScript.

Second Paragraph

js-02.htm

Including JavaScript

• Three Patterns

• As part of an event (i.e. onclick) in an HTML tag

• Inline within the document

• From a file

Hello World

One Paragraph

Second Paragraph

JavaScript inline that will pass validation

Hello World

One Paragraph

Third Paragraph

script.js: document.write("

Hello World

"); JavaScript in a separate file js-04.htm

One Paragraph

Two Paragraph

Three Paragraph

js-05.htm

Seeing the Error

• Since the end-user really cannot take any action to fix the

JavaScript coming as part of a web page, the browser eats the errors.

• As a developer, we need to look for the errors - sometimes it takes

a minute to even remember to check for a JS error

Console Logging

• Debugging using alert() can get tiring - sometimes you want to

record what happens in case something goes wrong

• http://getfirebug.com/logging

• console.log("String") - and many more functions

• Note: Requires recent browsers

One Paragraph

Two Paragraph

Three Paragraph

js-06.htm

Using the Debugger

• Add the FireBug FireFox Extension

• Enable FireBug, reload

• Set Breakpoint, and reload again