function exerciseOne(){ // Exercise One: 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 multiplied by two. let mathHelpers = { // Create double method in here.
}; return mathHelpers; }
I have no clue what to do here. I've watched the Lambda School: Methods, Loops, and the 'this' Keyword video 5 times and I'm still confused as to what they want me to do.
function exerciseOne(){
// Exercise One: 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 multiplied by two.
let mathHelpers = {
// Create double method in here.
};
return mathHelpers;
}
I have no clue what to do here. I've watched the Lambda School: Methods, Loops, and the 'this' Keyword video 5 times and I'm still confused as to what they want me to do.
https://www.youtube.com/watch?v=FNfaU-bVdqM&feature=youtu.be
@vedprad1 I found it. It was hidden. Didn't appear until i hovered the mouse over it. Thanks again for your help!