Your SlideShare is downloading. ×
  • Like
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply


Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads


Total Views
On SlideShare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1.  
  • 2. Programming Languages
    • All have…
      • Variables, data types, assignment
      • Arithmetic, relational, and logical operators, and expressions
      • Control structure: if-then, while, loops, iteration
      • Program structure: functions, objects, methods
      • Arrays and strings
      • Input and Output
  • 3. What is JavaScript?
    • JavaScript is a programming/scripting language designed for the Web
    • Javascript is interpreted not compiled
    • JavaScript is not Java
    • JavaScript provides interactivity for Web pages
    • JavaScript may be embedded in HTML or referenced from HTML (like CSS)
    • JavaScript is forgiving and easy to use
  • 4. JavaScript is Object-Oriented
    • JavaScript uses objects that have attributes and methods
    bgColor is an attribute of the document object document.bgColor=“#888888”; write is a method in the document object document.write(“Hello Earl!”); The DOM (Document Object Model)
  • 5. JavaScript is typically used to enhance a Web interface Javascript is a key element in the popular AJAX programming methodology. Javascript code can reference Javascript libraries such as jQuery .
  • 6. JavaScript Embedded in HTML
    • In the html <body>
  • 7. JavaScript Embedded in HTML
    • In the html <body>
  • 8. JavaScript Embedded in HTML
    • In the html <head>
  • 9. Working with Variables
  • 10. Working with Variables
  • 11. HTML Forms
    • Javascript can collect user input through HTML forms.
  • 12. Calling a function from a form v1 and v2 are two variables being passed into function add this.form.v1.value gets the value the user typed in the v1 textbox on the form in this document The button calls the function add when it is clicked (onclick)
  • 13. if – elseif - else