Arrow Function và Function
function functionName(parameter1, parameter2) { // code to be executed }(parameter1, parameter2) => { // code to be executed }// Ví dụ: const sum = (a, b) => a + b; // equivalent to function sum(a, b) { return a + b; }
PreviousCách xử lý mảng, object, biến tham chiếu khác biến nguyên thủy trong JavaScriptNextToán tử logic và toán tử ba ngôi trong JavaScript
Last updated