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

Creating Beautiful Login Form Design Using React

Introduction to Login Form Design Designing an effective and beautiful login form is crucial for…

1 day ago

Creating Responsive Login Form with React

Introduction In today creating a responsive login form is essential for providing a seamless user…

3 days ago

Master React Inventory Management System Development

Introduction to Inventory Management Systems In today's fast-paced digital environment, businesses require efficient inventory management…

1 week ago

React Inventory Management System

Introduction to React Inventory Management Systems In today’s fast-paced business environment, efficient inventory management is…

1 week ago

Login Form Using React

How to make a Login Form in React Step by Step. (more…)

1 week ago

Building Functional Calculator in React for Beginners

Introduction to React Calculator Creating a functional calculator in React is an excellent way to…

1 week ago