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.
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 MoreFull-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 MoreHey I am on Medial • 1y
JavaScript's evolution with ES6 introduces features that enhance development efficiency and readability. Key ES6 features include arrow functions, which provide concise syntax and lexical binding of `this`; classes, simplifying object-oriented progra
See MoreCrafting 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 MoreDownload the medial app to read full posts, comements and news.