
In this article we will take a look at Four Different Ways to Write Functions in Javascript
Functions are the basic building blocks of the Javascript. A function in Javascript is a code block that performs a specific task or set of tasks.
There are basically 4 (four) different ways we can define functions in Javascript.
// Function Declaration
function square(x) {
return x * x;
}
// Function Expression
const square = function (x) {
return x * x;
};
// Arrow Function Expression
const square = (x) => {
return x * x;
};
// Concise Arrow Function Expression
const square = (x) => x * x;
If you prefer you can take a look at the video tutorial,
Creating custom popover component with Vue 3 and Tailwind CSS
In this article we'll see how we can create a custom design sytem popover component with vue 3 and tailwind css.
Getting Started With Angular 10 and TailwindCSS using CDN (Part 1)
In this article, we will take a look at how we can use TailwindCSS with Angular 10 using the TailwindCSS CDN