Please enable JavaScript.
Coggle requires JavaScript to display documents.
Js-Interview - Coggle Diagram
Js-Interview
part1
DATA TYPE
1. Object
create objects
Object literal syntax
Function constructor
Function constructor with prototype
ES6 Class syntax
Singleton pattern
Object constructor
Object's create method
How do you check if a key exists in an object
How do you loop through or enumerate javascript object
How do you test for an empty object
What is an arguments object
How do you make first letter of the string in an uppercase
Date
How do you display the current date in javascript
How do you compare two date objects
What are the recommendations to create new object
Object in-built
How do you generate random integers
Can you write a random integers function to print integers with in a range
How do you determine two values same or not using object
Math
What is the purpose of using object is method
What are the applications of assign method
How do you get enumerable key and value pairs
What is the main difference between Object.values and Object.entries method
2. Json
2.Json ? and common operation ?
JSON.stringify(object);
JSON.parse(text);
What is JSON
What are the syntax rules of JSON
Why do you need JSON
How do you define JSON arrays
3. Array
difference between slice and splice
array slice method
4. string
How do you check whether a string contains a substring
How do you check if a string starts with another string
How do you trim a string in javascript
How do you define multiline strings
Regular Expression
What is a Regular Expression
What are the string methods available in Regular expression
What are modifiers in regular expression
What are regular expression patterns
How do you search a string for a pattern
What is the purpose of exec method
4. Prototype
Call, Apply and Bind
Call: function.call(object, argument1, argument2 ...)
Apply: function.apply(object, [argument1, argument2 ...])
Bind: newFunction = function.bind(object)
newFuntion(argument1, argument2, ...)
prototype chain
What is the difference between proto and prototype
3. Operator
difference between == and === operators
What is the purpose of double exclamation (!!)
What is the purpose of the delete operator
What is typeof operator
Is the !-- notation represents a special operator
What are the bitwise operators available in javascript
What is a spread operator
5. Function
higher order function
IIFE(Immediately Invoked Function Expression) (c22)
closures (c27)
callback function
Why do we need callbacks
What is callback in callback
eval
isNaN()
isFinite()
Can we define properties for functions
What is the way to find the number of parameters expected by a function
parameter
What is a rest parameter
What happens if you do not use rest parameter as a last argument
0. General
Variable
redeclare variables in switch block without an error (c20)
the Temporal Dead Zone
Hoisting
between let and var
scope
the differences between undeclared and undefined variables
global variables
What are the problems with global variables
How do you assign default values to variables
What are the benefits of keeping declarations at the top
What are the benefits of initializing variables
1. modules
Why do you need modules
2. promise
Why do you need a promise
What are the three states of promise
What are the main rules of promise
What is promise chaining
What is promise.all
What is the purpose of the race method in promise
0. Other subject
What is ECMAScript
What is the difference between window and document
What is a polyfill
How do you detect javascript disabled in the page
4. Some javascript language points
Is JavaScript a compiled or interpreted language
Is JavaScript a case-sensitive language
Is there any relation between Java and JavaScript
Who created javascript
Why is JavaScript treated as Single threaded
5. What is the use of setTimeout
What is the purpose of clearTimeout method
6. What is the use of setInterval
What is the purpose of clearInterval method
Loop
What are js labels
What are break and continue statements
6. Memory
memoization
web storage (c35)
Local storage
Session storage
methods available on session storage
How do you access web storage
Why do you need web storage
Cookie
Why do you need a Cookie
What are the options in a cookie
How do you delete a cookie
What are the differences between cookie, local storage and session storage
7. ES6
strict mode
Why do you need strict mode
How do you declare strict mode
8. Property
What is undefined property
What is null value
What is the difference between null and undefined
9. DOM
How do you submit a form using JavaScript
What is the difference between document load and DOMContentLoaded events
What is the difference between an attribute and a property
Event
What is the use of preventDefault method
What is an event delegation
What are the ways to execute javascript after page load
Style
How do you change the style of a HTML element
Element
How do you get the image width and height using JS
10. Window
Navigator
How do you find operating system details
How do you detect a browser language preference
What is BOM
Location
How do you redirect new page in javascript
How do you get the current url with javascript
What are the various url properties of location object
Learn
What is prototype,
proto
What is the difference between proto and prototype (176)