javascript interview questions for full stack developer

What is a higher-order component in React?

What is a higher-order component in React? A higher-order component acts as a container for other components. This helps to keep components simple and enables re-usability. They are generally used when multiple components have to use a common logic.  Also Read:- Top 40 Frequently Asked Node.js Interview Questions Elon Musk’s Lawyers to Argue With Twitter …

What is a higher-order component in React? Read More »

Difference between var and let keyword in javascript

Difference between var and let keyword in javascript Some differences are  From the very beginning, the ‘var’ keyword was used in JavaScript programming whereas the keyword ‘let’ was just added in 2015. The keyword ‘Var’ has a function scope. Anywhere in the function, the variable specified using var is accessible but in ‘let’ the scope of a …

Difference between var and let keyword in javascript Read More »

What are the different data types present in javascript?

What are the different data types present in javascript? To know the type of a JavaScript variable, we can use the typeof operator. 1. Primitive types String – It represents a series of characters and is written with quotes. A string can be represented using a single or a double quote. Example : Number – It represents a number …

What are the different data types present in javascript? Read More »