Back

Sagar gupta

Full-time Freelancer... • 11m

Most Javascript Questions Asked in Interview | PART 2 1. What is difference between a for loop and for Each loop Ans: A for loop is traditional loop that uses a counter variable to iterate over an array. ForEach loop is a method that iterate over an array and execute a callback function for each element.forEach loop is more concise but it can be slower and less flexible than traditional for loop. 2. How does javascript handle asynchronous programming. Ans: javascript uses callback to handle asynchronous programming , javascript also support promises and async await syntax which provides more concise and readable way of handling asynchronous code. 3.what is callback function. Ans: Callback is a function that is passed as an argument to another function and is executed when a specific operation is completed.

Reply
2
10

More like this

Recommendations from Medial

Prince Singh Chouhan

Front-end Developer • 1y

#Array in #javascript: Array in Javascript enables storing a collection of multiple items under a single variable name, and has members for performing common array operations. Arrays aren't primitives but are instead Array #objects with the followin

See More
Reply
2

sai akhilesh

Student @Geethanjali... • 1y

What is conditional statements in Programming https://youtube.com/shorts/PC3KnjMxKV4?feature=share #javascript #programming #webdevelopment

Reply
3
Image Description
Image Description

Rohit Gupta

Aspiring Web Develop... • 1y

Day30 of 100daysofcodechallenge... Today I learned about Object Literal, Array of object and Math object In JavaScript. I also make a basic "Guess The Number" game.

5 Replies
8

Rohit Gupta

Aspiring Web Develop... • 1y

Day30 of 100daysofcodechallenge... Today I learned about Object Literal, Array of object and Math object In JavaScript. I also make a basic "Guess The Number" game.

Reply
4
Image Description

Sagar gupta

Full-time Freelancer... • 11m

Javascript Questions Asked in Every Interview | PART 1 1. What is the difference between Null and undefined. Ans: Null and undefined are both primitive values in javascript that represents the absence of value. Key difference null is deliberately a

See More
1 Reply
1
15

Somen Das

Senior developer | b... • 1y

Array.reduce() is Goated the Swiss army knife Summing Numbers: Using reduce() to calculate the sum of numbers in an array. Flattening Arrays: Flattening a nested array into a single array. Grouping Objects: Grouping objects based on a speci

See More
Reply
5

Rohit joshi

Dev dev dev • 4m

🚀 **Master Asynchronous Programming in C#** 🚀 Asynchronous programming is a **must-have skill** for modern C# developers. Whether you're building APIs, working with databases, or handling real-time applications, understanding **async/await** can

See More
Reply

Arihant Jain

Crafting Impactful A... • 4d

🧠 Programming Challenge of the Day Can you solve this? You're given an integer array (with both positive and negative values). Each element in the array represents the number of stars (*) to be printed vertically in its column: 🔹 Positive values

See More
Reply
1
3

pusarla Tarun vamsi

Passionate Software ... • 1y

JavaScript: The language where 'undefined' is not a type error but a rite of passage. 🛤️😂 #DevProblems #JavaScript

Reply
4

Download the medial app to read full posts, comements and news.