Discussion is about the working of code

Discussion is about the working of code


When i type this simple code using function to do multiplication , my code does not show any result
The code is

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

// Write the function multiply below
// It should take two parameters and return the product
var multiply=function(x,y){
return x * y;



I formatted your code for you, see here for details:

In this case, your function appears fine - but it isn’t showing anything because you don’t specify how the returned value should be shown. You could either write it to your HTML page, or log it to the console, but those are both things you have to code specifically - return alone doesn’t do that automatically.


Thank you Mr. Jackson.
It was a trouble for me for few days .