Functions Method in JavaScript

Function : The function is it also called function declaration and function statement .

Do the function is received the value and return the value. for a example function anyName (name){

return name;


this is return function .

Type of Function

Square Function: The square function is return value of square.

Bark Function: The bark function is return the same value.

Block Function : The block function eggnog let variable in the condition of if, and var variable is insert the if condition and print the next condition value. and let variable eggnog the condition value like if , always and print the first value.

Array Function: The array function used long string , also object element etc. array function used map. Map like passing the value, and console the value…