Filter interviews by
I appeared for an interview in Dec 2024.
An array is a data structure that stores a collection of elements, and in JavaScript, you can modify it by adding, removing, or updating elements.
Use array methods like push(), pop(), shift(), unshift(), splice(), and slice() to modify arrays in JavaScript.
Example: let fruits = ['apple', 'banana', 'orange']; fruits.push('grape'); // adds 'grape' to the end of the array
Example: let numbers = [1, 2, 3, 4, 5]; numbers.spl...
Callback functions are functions passed as arguments to other functions, to be executed later.
Callback functions are commonly used in asynchronous programming to handle events or responses.
They allow for more flexible and modular code by separating concerns.
An example of a callback function is the 'setTimeout' function in JavaScript.
To create a calculator in JavaScript, you can use HTML for the layout and JavaScript for the functionality.
Create a basic HTML structure with input fields for numbers and buttons for operations.
Use JavaScript to handle user input, perform calculations, and display results.
Implement functions for addition, subtraction, multiplication, and division.
Update the display with the result of the calculation when the user click...
What is array and how to modify it
I was responsible for providing technical support to customers, troubleshooting issues, and resolving problems.
Provided technical support to customers via phone, email, and chat
Troubleshooted hardware and software issues
Resolved technical problems in a timely manner
Documented customer interactions and solutions
Collaborated with other teams to escalate complex issues
No, I did not cheat in my exams. I believe in honest hard work and integrity.
I have always believed in the value of education and the importance of earning my grades honestly.
Cheating goes against my personal values and ethics.
I have never been involved in any form of academic dishonesty.
I believe that cheating only harms oneself in the long run.
I appeared for an interview in Dec 2024.
An array is a data structure that stores a collection of elements of the same type in a contiguous memory location.
To modify an array, you can access individual elements by their index and update them with new values.
You can also add new elements to the array by assigning values to new indexes.
Example: let array = ['apple', 'banana', 'cherry']; array[1] = 'orange'; array.push('grape');
Callback functions are functions passed as arguments to other functions to be executed later.
Callback functions are commonly used in event handling, asynchronous programming, and functional programming.
They allow for flexibility and reusability of code by separating concerns.
An example of a callback function is the 'setTimeout' function in JavaScript.
To create a calculator in JavaScript, you can use HTML for the layout and JavaScript for the functionality.
Create a basic HTML structure with buttons for numbers and operators
Use JavaScript to handle user input and perform calculations
Display the result on the screen in real-time
Handle edge cases like division by zero or multiple operators in a row
Top trending discussions
I applied via Naukri.com and was interviewed before Aug 2020. There were 4 interview rounds.
posted on 26 May 2022
I applied via Approached by Company and was interviewed before May 2021. There were 2 interview rounds.
based on 3 interview experiences
Difficulty level
Duration
based on 2 reviews
Rating in categories
TCS
Accenture
Wipro
Cognizant