function greetings()
{
console.log("Hello world!");
}
greetings();
function add(x,y) { /// x and y are parameters
console.log(x+y);
}
add(4,5) // 4 and 5 are arguments
function myMsg(msg) {
console.log(msg)
}
myMsg("Hii i am vikas")
// return
function sum(x,y) {
s= x+y;
return s;
}
// let result = sum(6,7)
// console.log(result)
console.log(sum(7,8));
To embed this program on your website, copy the following code and paste it into your website's HTML: