9. Functions With Two Parameters. HELP!


#1

Continuing the discussion from 9. Functions With Two Parameters. HELP!:

@vikas_beta mentioned, "don't use print before console.log," in fact, do NOT use console.log at all.

The most efficient way to code this:

var perimeterBox = function(length,width) {
return length + length + width + width;
};

perimeterBox(12,42);Continuing the discussion from 9. Functions With Two Parameters. HELP!:


#2

@exfx,

...but as the return statement is returning a result with NOdisplay
you would then use

console.log( perimeterBox(12,42) );

to make the result visible


#3

Ahhh yes preying mantis. The student, remains the student.