Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

A function with expression in js

// Expressions in js

// A simple function without any expression
function func() {
    console.log("Hello i am a function");
}

func();

// A fancy function in js with expression is like shown below
const func_2 = function () {
    console.log("Hello i am a function");
}

func_2();
 
PREVIOUS NEXT
Tagged: #A #function #expression #js
ADD COMMENT
Topic
Name
3+9 =