Tag Archives: JavaScript Function

JavaScript Function Expression and Literals

In the JavaScript Function tutorial, we learned how to define or declare a function using the function keyword. In this tutorial, we will learn about function literals, Expression, and Anonymous functions in JavaScript. A function literal is a method of defining an unnamed or anonymous function. By far, we define a function expression using the function keyword followed by… Read More »

JavaScript Function Parameters and Arguments

In the last JavaScript function tutorial, we learned about how we can define a function and parameters along with it. And in this tutorial, we will dive deep into the concept of JavaScript functions and arguments. Function Parameters and Arguments There is a subtle difference between the function parameters and arguments. Function parameters are the variable names that… Read More »

JavaScript Function

A function is a container for a block of the code, that is used to perform a specific task. Using the function we can divide a big program into smaller modules or subparts. A function is like a small encapsulated block of code that can be called anywhere throughout the Program. There are two types of functions in… Read More »