I just want to know what is the difference between the following function declaration
function name(name){ return "your name is " + name; } const name1= function(name){ return "your name is " + name; } const name2= (name) => { return "your name is " + name; } const name3= (name) => "your name is " + name; let's say I'm building a project and i want to use the function() , i want to know if the they all the same or not ?
https://stackoverflow.com/questions/66773380/difference-between-function-declaration March 24, 2021 at 09:06AM
没有评论:
发表评论