Skip to content

Latest commit

 

History

History
270 lines (152 loc) · 3.81 KB

File metadata and controls

270 lines (152 loc) · 3.81 KB

JavaScript crumbs


JavaScript crumbs

Backers

Enrico Marino

[email protected]
enricomarino.com

Federico Spini

[email protected]
federicospini.com


JavaScript crumbs

Backery

Computational Visual Design Lab

http://dia.uniroma3.it/~cvdlab/
https://github.com/cvdlab


JavaScript crumbs

What's JavaScript?


JavaScript crumbs

What's JavaScript?

JavaScript is a
dynamic
weakly typed
interpreted
object oriented
prototype based
general purpose
programming language


JavaScript crumbs

Why JavaScript?


JavaScript crumbs

Why JavaScript?

You have no choice


JavaScript crumbs

Why JavaScript?

You have no choice

It's pretty good


JavaScript crumbs

Why JavaScript?

The world's most popular programming language


JavaScript crumbs

Why JavaScript?

The world's most popular programming language

It's the scripting language of the web

It's the only one inside every pc (in the browser)


JavaScript crumbs

Why JavaScript?

The world's most misunderstood programming language


JavaScript crumbs

Why JavaScript?

The world's most misunderstood programming language

The Java- prefix suggests that
JavaScript is somehow related to Java

The -Script suffix suggests that
JavaScript is not a real programming language


JavaScript crumbs

History

1995

Brendan Eich @Netscape began developing Mocha (later called LiveScript)


JavaScript crumbs

History

1996

Netscape changed LiveScript’s name to JavaScript (in Netscape Navigator 2)
(to capitalize on the success of Java)

Netscape released JavaScript 1.1 (in Netscape Navigator 3)

Microsoft released a JavaScript implementation called JScript (in IE 3)
(to avoid licensing issues)


JavaScript crumbs

History

1997

Netscape submitted JavaScript 1.1 to ECMA

The new standard named ECMAScript was born


JavaScript crumbs

History

1999

ECMAScript edition 3 was released

ECMAScript edition 4 (aka E4X) was abandoned
(due to its complexity)


JavaScript crumbs

History

10 years later...

2009

ECMAScript edition 5 was published


JavaScript crumbs

History

toward the future

ECMAScript edition 6 is coming...


JavaScript crumbs

JavaScript in HTML5

HTML5 API


JavaScript crumbs

JavaScript in the server


JavaScript crumbs

JavaScript in the server

six line of code webserver in node.js
var http = require("http");
var server = http.createServer(function (req, res) {
  res.writeHead(200, {"Content-Type": "text/plain"});
  res.end("Hello World!");
});
server.listen(3000);

JavaScript crumbs

A Simple Testing Ground

If you have a web browser and any text editor,
you have everything you need to run JavaScript programs.

.html page

<html>
<body>
  <script src="path/to/your/script.js"></script>
</body>
</html>

.js script

console.log('Hello Web!');

Open the .html page in your browser,
open the JavaScript console to see the result.


JavaScript crumbs

the end


JavaScript crumbs

this presentation is powered by

JavaScript