Umm...cubing? can anyone help when cubing using squares?


Error messages include:
and Oops, try again. false

var square = function (x) {
  return x * x;

var cube = function (x) {
  return square * x;


not sure about js but in ruby you can do x**2 for square x ** 3 for cube i believe its the same in js. if not take and look at your cube function you call on square but have no input argument. square(×) * x that should fix it


oh my god thank youuu! I replaced

return square * x;
return square (x) * x

like you said and it worked! Thanks so much! :smiley:


your welcome glad i could help.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.