আজ থেকেই আপনার ভাষা শেখার যাত্রা শুরু করুন। আপনি যদি নতুন হন অথবা আপনার দক্ষতা বাড়াতে চান, আমাদের Interactive Lessons আপনাকে নিয়ে যাবে অন্য একটি Level এ
আপনি এখনো কোন Lesson Select করেন নি
Arrow functions (=>) are a shorter way to write functions in JavaScript. Arrow functions remove function keyword and use => instead.
example :
----- normal function ----
function sum(num1,num2){
const result = num1 + num2;
}
----- arrow function ----
const sum = (num1,num2) => {
const result = num1 + num2;
}
A Promise in JavaScript is used to handle asynchronous operations. It helps to execute code that takes time (like fetching data from an API) without stopping the rest of the program.
A Promise is an object that represents the eventual completion or failure of an asynchronous operation.
It has 3 states:
A closure is when a function remembers the variables from its outer scope, even after the outer function has finished running.
A closure is created when: