Praeclarum Tech
Diksha Advertising & Printing Interview Questions and Answers
Q1. Tell me difference between Let, Var, Cost and
Let, var, and const are used to declare variables in JavaScript, with differences in scope and mutability.
let: block-scoped, can be reassigned
var: function-scoped, can be reassigned
const: block-scoped, cannot be reassigned
Q2. what is react js?
React JS is a JavaScript library for building user interfaces.
React JS is a declarative, efficient, and flexible JavaScript library for building user interfaces.
It allows developers to create reusable UI components.
React uses a virtual DOM for better performance by updating only the necessary parts of the actual DOM.
React follows a unidirectional data flow, making it easier to understand and debug.
React can be used to build single-page applications, mobile apps, and even serv...read more
Q3. what is node js?
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine that allows developers to run JavaScript code outside of a web browser.
Node.js is used for building server-side applications.
It allows developers to use JavaScript for both client-side and server-side development.
Node.js has a large ecosystem of open-source libraries and frameworks, such as Express.js.
Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient.
Node.js can b...read more
Q4. What is closure
Closure is the combination of a function bundled together with references to its surrounding state.
Closure allows a function to access variables from its outer scope even after the outer function has finished executing.
It is created whenever a function is defined within another function, and the inner function has access to the outer function's variables.
Closure helps in maintaining the state of a function and allows for data encapsulation.
Q5. Define let var const
let, var, and const are used to declare variables in JavaScript with different scoping rules.
let: block-scoped variable, can be reassigned
var: function-scoped variable, can be reassigned
const: block-scoped variable, cannot be reassigned, but its properties can be modified
Q6. Define Closure
Closure is a function that has access to its own scope, as well as the scope in which it was defined.
A closure allows a function to access variables from an outer function even after the outer function has finished executing.
Closures are commonly used in event handlers, callbacks, and in functional programming.
Example: function outerFunction() { let outerVar = 'I am outer'; return function innerFunction() { console.log(outerVar); }; }
Top HR Questions asked in Diksha Advertising & Printing
Interview Process at Diksha Advertising & Printing
Top React Js Frontend Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month