i
HCLTech
Work with us
Filter interviews by
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
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
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 document.
It provides a way for scripts to interact with the web page by accessing and manipulating elements like text, images, forms, etc.
DOM is platform and language-independent, a...
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 r...
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.
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 an...
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.
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
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...
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.
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 document.
It provides a way for scripts to interact with the web page by accessing and manipulating elements like text, images, forms, etc.
DOM is platform and language-independent, allowi...
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
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
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
I applied via Naukri.com and was interviewed in Oct 2022. There were 4 interview rounds.
How revere the string without using reverse method
Split duplication from the array
What people are saying about HCLTech
based on 14 interview experiences
Difficulty level
Duration
based on 24 reviews
Rating in categories
Software Engineer
24.8k
salaries
| ₹2.7 L/yr - ₹8 L/yr |
Technical Lead
22.8k
salaries
| ₹10.8 L/yr - ₹21 L/yr |
Senior Software Engineer
16.8k
salaries
| ₹5.4 L/yr - ₹15.7 L/yr |
Lead Engineer
16.4k
salaries
| ₹5.3 L/yr - ₹12.4 L/yr |
Analyst
15.8k
salaries
| ₹2.3 L/yr - ₹6.5 L/yr |
TCS
Wipro
Accenture
Cognizant