1 / 12

JavaScript

JavaScript. Katie Fowle November 15, 2011. History. Brendan Eich at Netscape, 1995 Need for interactivity in web pages Mocha, LiveWire , LiveScript , then JavaScript Not taken seriously at first Called “beginner’s language” or “toy”. Brendan Eich CTO, Mozilla Corporation .

maegan
Download Presentation

JavaScript

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JavaScript Katie Fowle November 15, 2011

  2. History • Brendan Eich at Netscape, 1995 • Need for interactivity in web pages • Mocha, LiveWire, LiveScript, then JavaScript • Not taken seriously at first • Called “beginner’s language” or “toy” Brendan Eich CTO, Mozilla Corporation

  3. Quote from the Creator “JS had to “look like Java” only less so, [it had to] be Java’s dumb kid brother or boy-hostage sidekick. Plus, I had to be done in ten days or something worse than JS would have happened”

  4. The Language • Primary use is Web page enhancement • Integrated into the browser • Interpreted • Weakly Typed • Latest Version 1.8.5

  5. JavaScript NOT Java Similarities Differences • C- style syntax • Object-Oriented • Key words • Standard Library naming conventions • Math and Date objects • Scripting languge • Some functional features • Weakly typed • Loaded as source code • Prototype-based

  6. Web Uses • Form validation • Event handling • User interaction • alert(), confirm(), prompt() • Dynamic content

  7. Data Types • Primitive types • Numeric, string, boolean • Objects • Built in: Object, Date, Array, Math, Function, RegExp, Number, String, and Boolean

  8. Object() constructor

  9. Literal notation

  10. Custom Constructor

  11. Evaluation • Readability • Writability • Reliability • Cost

  12. Cool Uses • http://www.1stwebdesigner.com/freebies/examples-html5-javascript-uses/ • http://www.kriesi.at/archives/50-websites-that-make-amazing-use-of-javascript

More Related