arrow function without arguments:
Console Output:
walk to Tadipatri
arrow function with a single argument:
Console Output:
Vande Mataram!
const walkFunc = () => {
console.log("walk to Tadipatri");
};
walkFunc();
Console Output:
walk to Tadipatri
arrow function with a single argument:
const singFunc = (songName:string) => console.log(songName);
singFunc("Vande Mataram!");
Console Output:
Vande Mataram!
No comments:
Post a Comment