i
HCLTech
Filter interviews by
I applied via Naukri.com and was interviewed in Feb 2024. There was 1 interview round.
DOM stands for Document Object Model, which is a programming interface for web documents.
DOM is a representation of the structure of a web page, allowing scripts to dynamically access and update the content, structure, and style of the page.
It provides a way for scripts to interact with the elements on a web page, such as changing text, styles, and attributes.
DOM is hierarchical, with elements nested inside other eleme...
Promises in TypeScript are objects representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in a more readable and manageable way.
They can be in one of three states: pending, fulfilled, or rejected.
Promises can be chained using .then() to handle success and .catch() to handle errors.
Example: const myPromise = new Promise((resolve, reject) => { ...
Hooks in JavaScript are functions that let you use state and other React features without writing a class.
Hooks were introduced in React 16.8 to allow functional components to have state and lifecycle methods.
useState() is a hook that allows you to add state to functional components.
useEffect() is a hook that allows you to perform side effects in functional components.
Custom hooks are functions that allow you to reuse
Generate an array of prime numbers from 1 to 100.
Iterate from 1 to 100 and check if each number is prime
A prime number is only divisible by 1 and itself
Start with a list of prime numbers and check divisibility
I applied via Naukri.com and was interviewed in Apr 2024. There were 2 interview rounds.
Recurrsion tree implementation with angular
Verbal questions mostly asked and very easy
Opps and recursion and an array and string questions asked
Quite easy round it was very simple
Future of ai in 2025
HCLTech interview questions for designations
Reverse a given string
Use built-in methods like split(), reverse(), and join() to reverse the string
Alternatively, loop through the string from end to start and build a new reversed string
Get interview-ready with Top HCLTech Interview Questions
It was quit well and easy based on alphabtical or programming based questions
2 3 coding questions on patterend question
State in functional components can be managed using the useState hook in React.
Use the useState hook to declare state variables in functional components.
useState returns an array with the current state value and a function to update that value.
Example: const [count, setCount] = useState(0);
State variables should be immutable, so always use the setter function to update them.
Event loop in JavaScript is responsible for handling asynchronous operations by executing callback functions in a non-blocking way.
Event loop is a mechanism that allows JavaScript to perform non-blocking operations.
It continuously checks the call stack and the callback queue to see if there are any functions that need to be executed.
If the call stack is empty, it takes the first function from the callback queue and pus...
Hosting in JavaScript refers to the process of declaring a variable or function before it is used in the code.
Hosting allows you to use variables and functions before they are declared in the code.
Variables are hoisted to the top of their scope, while functions are fully hoisted.
Example: console.log(myVar); var myVar = 10; This will not throw an error because 'myVar' is hoisted to the top of the scope.
I applied via Company Website and was interviewed in Apr 2023. There were 3 interview rounds.
JavaScript Promise is an object representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations such as fetching data from an API.
They have three states: pending, fulfilled, or rejected.
Promises can be chained using .then() and .catch() methods.
Promises can also be created using the Promise constructor.
Based on html, Css, Javascript and React-Js
I applied via Company Website and was interviewed before Jan 2022. There were 3 interview rounds.
Event Loop is a mechanism in JavaScript that manages the execution of code and handles asynchronous operations.
Event Loop continuously checks the call stack and the message queue.
If the call stack is empty, it takes the first message from the queue and pushes it onto the call stack.
If the message is a callback function, it is executed and removed from the call stack.
If the message is not a callback function, it is pass...
Use CSS to make a set of 6 boxes responsive
Use percentage or viewport units for width and height
Use media queries to adjust styles for different screen sizes
Consider using flexbox or grid for layout
Avoid using fixed pixel values
Test on different devices and browsers
Use CSS frameworks like Bootstrap or Foundation for easier implementation
What people are saying about HCLTech
2 Interview rounds
based on 18 reviews
Rating in categories
Software Engineer
22.6k
salaries
| ₹1.2 L/yr - ₹8 L/yr |
Technical Lead
20.9k
salaries
| ₹7 L/yr - ₹25 L/yr |
Senior Software Engineer
15.6k
salaries
| ₹4 L/yr - ₹16.5 L/yr |
Lead Engineer
14.8k
salaries
| ₹4.2 L/yr - ₹14 L/yr |
Analyst
14k
salaries
| ₹1.3 L/yr - ₹6.7 L/yr |
TCS
Wipro
Accenture
Cognizant