JavaScript Flashcards
The container (in animation) should be created with the style …… and the animation element should be created in the style ……..
position : relative
position : absolute
code to display date
document.getElementById(“demo”).innerHTML = “Date : “ + Date();
Mention the 3 parts of the W3C DOM.
Core DOM - standard model for all document types
XML DOM - standard model for XML documents
HTML DOM - standard model for HTML documents
what is W3C?
world wide web consortium
How is HTML DOM model is constructed?
As a tree of objects
what are templates for js objects
js classes
mention the keyword that you use when you create class inheritance
extends
define debugging
searching for and fixing errors in programming code// process of testing/ finding and reducing bugs
what is breakpoint
places where code execution can be stooped
what does debugger keyword do?
stops the execution of js and (if available) calls the debugging function
explain this keyword in regular function
In regular functions the this keyword represented the object that called the function, which could be the window, the document, a button or whatever.
Explain this keyword in arrow function
With arrow functions the this keyword always represents the object that defined the arrow function.
explain js modules and its statements
- It allows you to break up your code into seperate files and it relies on import and export statements
what are the two types of exports?
There are two types of exports: Named and Default.
what does JSON stand for ?
JSON stands for JavaScript Object Notation