Node JS

Node js Basic 3 Projects

  1. Create a function that prints your name to the console.
  2. create a function that takes your name as a paramenter and print to the console
  3. create a function that takes your name and age as paramenter and print to the console”Hi, my name is [yourname] and my age is [yourage] years old

 

  1. Create a function that prints your name to the console
function myName(name,age)
{
    console.log("Hi, my name is " + name +  " and i'm " +  age + " years old");
}


myName("Rajesh",34)

 

2. create a function that takes your name as a parameter and print to the console

function myName(name)
{
    console.log(name);
}

myName("Rajesh")

3. Create a function that prints your name to the console.

function myName()
{
    console.log("Rajesh");
}

 

 

 

 

admin

Recent Posts

Laravel 11 CRUD Mastering RESTful API MVC with Repository Pattern

In this tutorial will teach Laravel 11 Api MVC with Repository Pattern Crud Application step…

4 days ago

Laravel 11 CRUD Application

In this tutorial will teach Laravel 11 CRUD Application step by step. Laravel  11 CRUD…

4 weeks ago

How to make Times Table in React

in this tutorials we will be talk about how to make a times table in…

1 month ago

Laravel Tutorial: How to Add Numbers Easily Laravel 10

In this tutorials will teach How to add two numbers in Laravel 10. (more…)

1 month ago

Build Full-Stack Node.js MongoDB CRUD App with JWT Authentication

In this tutorial, we will teach the process of building a full-stack application using Node.js,…

2 months ago

Hospital Management System using OOP Java and MySQL

In this tutorial, we will explin you through the process of building a Hospital Management…

3 months ago