I was given a prompt to follow, Instructions
Write a multi-line arrow function called gemInfo that takes in three parameters, a gem type, gem size, and a gem color. Have the gemInfo function return an abject with the values of those parameters set to these three keys, gemType, gemSize, gemWeight.
- Should use arrow function
- Should be a multi-line function
function gemInfo(type, size, color){
var obj = {
type: gemType,
size: gemSize,
color: gemColor
};
return () => obj;
}
this is what i have so far and i am at a loss as to what i have wrong, can someone give me any guidance?