Only prints one function instead of two


I have this code:

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

var multiply = function (x, y) {
return x * y;

multiply(3, 12);

When I run the code it only prints the multiply function. Why?


I don't get that. Why ** ?


Hi you code is fine I was wong about ** and if you want to print the square I dont know why but if you put the call of the square function after the multiply it will show the square and not the multiply like that

multiply(3, 12)


The coding environment here will display the final value from the program. That is why you are only seeing the results of the multiply function.

If you want to print something, use console.log().