Lecture 3: json, ajax, APIs IN5320 - Development in ...

IN5320 - Development in Platform Ecosystems

Lecture 3: json, ajax, APIs

3rd of September 2018 Department of Informatics, University of Oslo Magnus Li - magl@ifi.uio.no

1

Today's lecture

1. Objects and Json 2. Ajax and APIs 3. Deferred and Promise

2

First presentation moved to week 42!

3

Objects and JSON

4

JavaScript objects

JavaScript allows us to create objects. Objects in JavaScript is just a collection of key - value pairs /named values

var room = { name:"Ada", number:3407, floor:3, type:"Datastue"

};

//Access variable room.name; //Change variable room.name = "Lisp";

5

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

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

Google Online Preview   Download