Back

Sagar gupta

Full-time Freelancer... • 10m

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.

0 replies10 likes
2

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
0 replies2 likes

sai akhilesh

Student @Geethanjali... • 11m

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

0 replies3 likes
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 replies8 likes

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.

0 replies4 likes
Image Description

Sagar gupta

Full-time Freelancer... • 10m

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 replies15 likes
1

Somen's 8D world

Hey I am on Medial • 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
0 replies5 likes

Rohit joshi

Dev dev dev • 3m

🚀 **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
0 replies

pusarla Tarun vamsi

Passionate Software ... • 12m

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

0 replies4 likes

sai akhilesh

Student @Geethanjali... • 11m

🎉 The Wait is Over! 🎉 The video is finally out! 📢 Watch JavaScript Conditional Statements & Ternary Operator - Full Tutorial & Examples now on Learn With Akhilesh! 🚀📚💻 Master JavaScript conditionals and the ternary operator with my step-by-s

See More
0 replies3 likes

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