📩 Get free ebooks in these two websites
👉https://freecomputerbooks.com/
👉https://www.onlineprogrammingbooks.com/
👉https://freecomputerbooks.com/
👉https://www.onlineprogrammingbooks.com/
How to create fully responsive product card using pure HTML, CSS.
https://dev.to/kunaal438/how-to-create-fully-responsive-product-card-using-pure-html-css-12hm
https://dev.to/kunaal438/how-to-create-fully-responsive-product-card-using-pure-html-css-12hm
RAM is ____ and ____?
Anonymous Quiz
15%
Volatile, Parmanent
15%
Non Volatile, Temporary
56%
Volatile, Temporary
15%
Non Volatile, Parmanent
Time to use your coding skill and win a coding t-shirt 👕
Watch detailed video: https://youtu.be/zrEPGIBpkCQ
Watch detailed video: https://youtu.be/zrEPGIBpkCQ
let obj = Object.freeze({});
obj.num = 34;
console.log(obj.num);
obj.num = 34;
console.log(obj.num);
Anonymous Quiz
24%
Null
32%
34
40%
Undefined
4%
No output
Where is the correct place to insert a JavaScript?
Anonymous Quiz
22%
body
36%
head
42%
both body and head
JavaScript Interview Question
Q. Difference between “ == “ and “ === “ operators.
Ans. Both are comparison operators. The difference between both the operators is that,“==” is used to compare values whereas, “ === “ is used to compare both value and types.
Example -
var x = 2;
var y = "2";
(x == y) // Returns true since the value of both x and y is the same
(x === y) // Returns false since the typeof x is "number" and typeof y is "string"
Q. Difference between “ == “ and “ === “ operators.
Ans. Both are comparison operators. The difference between both the operators is that,“==” is used to compare values whereas, “ === “ is used to compare both value and types.
Example -
var x = 2;
var y = "2";
(x == y) // Returns true since the value of both x and y is the same
(x === y) // Returns false since the typeof x is "number" and typeof y is "string"
JavaScript Interview Question
Q. Explain Higher Order Functions in javascript.
Ans. Functions that operate on other functions, either by taking them as arguments or by returning them, are called higher-order functions.
Higher order functions are a result of functions being first-class citizens in javascript.
Examples of higher order functions:
function higherOrder2() {
return function() {
return "Do something";
}
}
var x = higherOrder2();
x() // Returns "Do something"
Q. Explain Higher Order Functions in javascript.
Ans. Functions that operate on other functions, either by taking them as arguments or by returning them, are called higher-order functions.
Higher order functions are a result of functions being first-class citizens in javascript.
Examples of higher order functions:
function higherOrder(fn) {
fn();
}
higherOrder(function() { console.log("Hello world") })
function higherOrder2() {
return function() {
return "Do something";
}
}
var x = higherOrder2();
x() // Returns "Do something"
What is the necessary condition to be checked before deleting element from stack?
Anonymous Quiz
40%
Overflow
53%
Underflow
7%
Rear value
JavaScript Interview Question
Q. What are the advantages and disadvantages of JavaScript?
Ans.
Advantages -
1. Server interaction is less
2. Feedback to the visitors is immediate
3. Interactivity is high
4. Interfaces are richer
Disadvantages -
1. No support for multithreading
2. No support for multiprocessing
3. Reading and writing of files is not allowed
4. No support for networking applications
Q. What are the advantages and disadvantages of JavaScript?
Ans.
Advantages -
1. Server interaction is less
2. Feedback to the visitors is immediate
3. Interactivity is high
4. Interfaces are richer
Disadvantages -
1. No support for multithreading
2. No support for multiprocessing
3. Reading and writing of files is not allowed
4. No support for networking applications
JavaScript Interview Question
Q. What is NaN property in JavaScript?
Ans. NaN property represents “Not-a-Number” value. It indicates a value which is not a legal number.
typeof of a NaN will return a Number .
To check if a value is NaN, we use the isNaN() function,
Note- isNaN() function converts the given value to a Number type, and then equates to NaN.
Q. What is NaN property in JavaScript?
Ans. NaN property represents “Not-a-Number” value. It indicates a value which is not a legal number.
typeof of a NaN will return a Number .
To check if a value is NaN, we use the isNaN() function,
Note- isNaN() function converts the given value to a Number type, and then equates to NaN.
isNaN("Hello") // Returns true
isNaN(345) // Returns false
isNaN('1') // Returns false, since '1' is converted to Number type which results in 0 ( a number)
isNaN(true) // Returns false, since true converted to Number type results in 1 ( a number)
isNaN(false) // Returns false
isNaN(undefined) // Returns true