Practical System Skills

CS6

Practical

System

Skills

Fall 2019 edition

Leonhard Spiegelberg

lspiegel@cs.brown.edu

18 Javascript/JSON

CS6 Practical System Skills

Fall 2019

Leonhard Spiegelberg lspiegel@cs.brown.edu

18.01 History of Javascript

? created by Brendan Eich in 1995 for

Netscape Navigator

? positioned originally as web "companion"

for Java, though there is no connection

between Java and Javascript

? scripting language for webpages

¡ª> typically used to manipulate documents on the client-side,

i.e. javascript allows client-side computing.

¡ª> also used for server-side scripting (node.js + more)

3 / 42

18.02 The big picture

HTML

content

CSS

presentation

Javascript

behavior

specify content with

tags, e.g.

rules to style the

content

run logic to change

content/presentation

dynamically

this is a

bold

statement

p { color: red; }

alert("Hi!");

4 / 42

18.02 Why bother to learn another language?

Javascript is among

the most popular

languages

IEEE Spectrum 2019 survey

Stackover?ow 2019 survey





gramming-languages-2019

5 / 42

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download