nodejs

nodejs

Anonymus function in Javascript

In this tutorial, we will learn the concept of Anonymous function in Javascript and how to define named function and anonymous function in Javascript. What is a nameless function in Javascript? A nameless function is said to be an Anonymous function in JavaScript. Note: We can also assign a function to a variable. Defining A […]

Read More
nodejs

Functions in Javascript

In this tutorial, we are going to have a look at functions in JavaScript; its Declaration and example. What are the Functions in JavaScript? Functions in javascript are fully typed object, that you can pass as data to another function also. It can also be Extended and Manipulated. Function Declaration in JavaScript /*codeatglance sample of […]

Read More
nodejs

How to execute function immediately in Javascript

In this article, we will learn how to execute function immediately in Javascript. To run function directly in JavaScript after defining it, you just have to wrap the function in parenthesis () and invoke it. Example: Execute function immediately (function demoFunction() { console.log(“Immediately Executing Function”); } )(); The only way to create a new variable […]

Read More
nodejs

Hello World in Nodejs

In this Nodejs tutorial, we will create a simple Application to display the output “Hello World!” in the command prompt. NodeJs “Hello world” code to run on the command line. var msg = ‘Hello World!’; console.log(msg); Console: It is a global module that provides a simple debugging console that is similar to the one javascript […]

Read More