Promise
Using promise
Promise api
async/await
virtual dom
git
js data types
typescript type and interface
closure
hoisting
a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution
- var and function declarions
- let , const , use strict
scope
Global scope
The default scope for all code running in script mode.
Module scope:
The scope for code running in module mode.
Function scope
The scope created with a function.
Block scope
The scope created with a pair of curly braces (a block).
What is Cross-Site Scripting (XSS)
XSS, Cross-Site Scripting is an attack which takes place when any attacker uses a web application to send any malicious code, in the form of browser side script, to another user.
What is callback hell?
The callbacks which are stacked in the form of pyramid structure.
when we use callback functions to do async operations , chaining of callback function make code very messy and hard to read
Polymorphism
The word Polymorphism means having many different forms. If we talk in object-oriented form, polymorphism refers to one interface, multiple functions.
Strict Mode?
A new feature of ECMAScript 5 is Strict mode which lets you place a function, or a program in a “strict” context of operating.
What is meant by the KISS principle?
KISS, a backronym of “Keep it simple, stupid”. Which was the principal design in the US Navy in 1960. The KISS principle states that the simpler the system the better it works.
What does SOLID stand for?
S- single responsibility principle
O- open-closed principle
L- Liskov Substitution principle
I- interface segregation principle
D- dependency.
What is type Coercion in JavaScript?
The conversion of two different build-in Types of JavaScript is called Coercion. It comes in two forms, Explicit and implicit.
Mention ways to decrease page load time?
Image optimization
Browser cache
Compress and optimize content
State the elements of the CSS Box Model.
Content
Padding
Border
Margin