What is the way to print the length of a function to the console?


#1

Can someone please help?


#2

Hi can you post your code?


#3

What do you mean by the code?


#4

We mean what you typed to attempt this lesson. Code:

var cade = "Cade";

var sayName = function(i) {
    return "Hi my name is " + i;
};

sayName(cade);


#5

No, it is the length of yourColor


#6

Yeah, post what you tried.


#7

I can't think of a case where you would ever want to know the length of a function -- maybe you mean the length of a string?


#9