Kofuku Idea Labs
Intello Labs Pvt Ltd Interview Questions and Answers
Q1. what is the difference between html elements and tags
HTML elements are the building blocks of a webpage, while tags are the specific instructions within those elements.
HTML elements are the basic building blocks of a webpage, such as <div>, <p>, <img>.
Tags are the specific instructions within elements that define how content should be displayed, such as <h1>, <a>, <strong>.
Elements can contain one or more tags, and tags must be properly nested within elements.
Q2. Write a react app for login and verification form with 6 digit otp input
React app for login and verification form with 6 digit OTP input
Create a login form with email/username and password fields
Implement OTP verification with a 6 digit input field
Use React state to manage form data and OTP input
Utilize a library like react-otp-input for the OTP input field
Include validation for the email/username, password, and OTP input
Display success message upon successful verification
Q3. what is the useRef and its usage
useRef is a hook in React that allows for persisting values between renders without causing re-renders.
Used to access DOM nodes or values that persist between renders
Does not cause re-renders when the value changes
Commonly used for managing focus, animations, and integrating with third-party libraries
Q4. what are the html containers
HTML containers are elements used to group and structure content on a webpage.
Div - generic container element
Span - inline container element
Section - groups related content
Header - contains introductory content
Footer - contains footer content
Q5. How async await works
Async await is a feature in JavaScript that allows for asynchronous code execution in a synchronous manner.
Async functions return a Promise.
Await keyword is used to pause the execution of async function until the Promise is settled.
Async await simplifies asynchronous code and makes it look like synchronous code.
Example: async function fetchData() { await fetch('https://api.example.com/data'); }
Q6. What is eventloop
Event loop is a mechanism in JavaScript that allows for asynchronous operations to be executed in a non-blocking way.
Event loop is responsible for handling asynchronous operations in JavaScript.
It allows for non-blocking execution of code by moving asynchronous tasks to the background and executing them when ready.
Event loop continuously checks the call stack and the callback queue to see if there are any tasks that need to be executed.
Examples include setTimeout, setInterval...read more
Interview Process at Intello Labs Pvt Ltd
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month