Answers for "how to write a funcat in javascript"

0

how to write a funcat in javascript

function name(){ 
  //return something here
}

let name = function(arg){ return arg + 2}
name(4) //this equals 6, here we are calling our name function

//es6 style 

let name = (arg) => {return arg+ 2}
name(4) //equals 6
Posted by: Guest on March-26-2021

Code answers related to "how to write a funcat in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language