• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
01 first java script program
 

01 first java script program

on

  • 436 views

 

Statistics

Views

Total Views
436
Views on SlideShare
436
Embed Views
0

Actions

Likes
0
Downloads
12
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • pp. 21-24
  • pp. 25-29Exercises on 29 – 34 will be done later.
  • pp. 34-40console.log(string1, string2, string3, …)More on this later in the book
  • pp. 29-34

01 first java script program 01 first java script program Presentation Transcript

  • CHAPTER 1: WRITINGYOUR FIRSTJAVASCRIPT PROGRAM
  • JavaScript is a programming languagerunning in the browser • Runs on the client, not the server • Not compiled • Weakly-typed • Not object-oriented
  • You add JavaScript to web pages• Put it inside <script> tags …<script>function sayHi() { alert("Hello, there.");}sayHi();</script>• … or add as a separate file<script src="navigation.js"></script>
  • Debuggers (such as they are) • Firefox • Web Developer -> Error Console • Firebug • IE9 • F12 • Chrome • Tools –> JavaScript Console • Safari • Develop -> Show Error Console
  • Conclusion• Short, quick overview of JavaScript• What JavaScript is• How to get it running• Some debugging tools
  • Labs• Do the exercises on pages 29-34, the three hello world programs.