+ 1

How to solved that problem

Function exercise //In this exercise you are given an object called’ mathHelpers’ within mathHelpers, create a method called ‘double’ this method should take one parameter, a number, and it should return that number multiple by two. JavaScript language

11th Feb 2020, 6:05 AM
Rony Prevot
Rony Prevot - avatar
3 odpowiedzi
+ 3
What language?
11th Feb 2020, 6:13 AM
Gordon
Gordon - avatar
+ 3
In certain languages, double will be a reserved word and you wouldn't be able to have a method with that name.
11th Feb 2020, 6:13 AM
Sonic
Sonic - avatar
+ 2
What language should this be in?
11th Feb 2020, 6:13 AM
Sonic
Sonic - avatar