CHAPTER 1: WRITINGYOUR FIRSTJAVASCRIPT PROGRAM
JavaScript is a programming languagerunning in the browser  • Runs on the client, not the server            • Not compiled...
You add JavaScript to web pages• Put it inside <script> tags …<script>function sayHi() {  alert("Hello, there.");}sayHi();...
Debuggers (such as they are)                • Firefox                  • Web Developer -> 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.
Upcoming SlideShare
Loading in...5
×

01 first java script program

341

Published on

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
341
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • 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

    1. 1. CHAPTER 1: WRITINGYOUR FIRSTJAVASCRIPT PROGRAM
    2. 2. JavaScript is a programming languagerunning in the browser • Runs on the client, not the server • Not compiled • Weakly-typed • Not object-oriented
    3. 3. 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>
    4. 4. Debuggers (such as they are) • Firefox • Web Developer -> Error Console • Firebug • IE9 • F12 • Chrome • Tools –> JavaScript Console • Safari • Develop -> Show Error Console
    5. 5. Conclusion• Short, quick overview of JavaScript• What JavaScript is• How to get it running• Some debugging tools
    6. 6. Labs• Do the exercises on pages 29-34, the three hello world programs.
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×