Lecture 8 (fetch) Flashcards

1
Q

fetch

A
used to obtain a resource file (css,js,html), image, video, data
fetch(url).
then(function(response){
// handle the response}).
catch(function(error) {
// handle the error
})
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

json

A

JavaScript Object Notation:

  • Format for data sharing
  • Language independent
  • Alternative to XML
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

web app manifest

A
  • list of contents
  • provides info about the app
    e. g. theme colour, icons, name
  • json file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

service worker

A
  • makes apps and web pages available offline

- communicates with network and cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly