-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday3task.txt
More file actions
38 lines (24 loc) · 1.08 KB
/
day3task.txt
File metadata and controls
38 lines (24 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
1. For the given JSON iterate over all for loops(for, for in, for of, for each)?
* JSON stands for javascript object notation.
* It is a easy format to store and transfer data form one place to another.
* So, in looping it is mostly used techniques for transfering data.
2. Read about the difference between window, screen and document in javascript.
Window:
* All the browser tab has a top level window object.
* Each of the windows get a seperate global object.
* Some of the window properties are,
* setTimeout() and setInterval()
* location
* navigator
Document:
* Each window has a document oject to be rendered.
* This object get consfused because HTML elements are added to global object.
* Some of document properties are:
* document.getElementById("_")
* document.querySelector("#_")
* window._name
Screen:
* Window object also has a screen object with properties like the physical display.
* Screen properties:
* Width and height are the full screen
* availWidth and availHeight omit the toolbar.