Basic Learning - Why won't this print?

 var cookies="cookies_and_cookies_cookies_cookies"
 var blah_blah_blah="whatever"
function reallycool(cookies){
  document.write("whatever you like to do" +cookies);

Could someone tell me what this won’t print when I have named the function and have a variable in the parameter and I can’t see any errors in the syntax ?

I can’t get this to work, I’m going to have to read up a little more. Thanx :slight_smile:

When you declare a function, the code inside that function doesn’t actually run until you call it, and provide it with its parameters.

For example, you could follow the above code with:



reallycool(', I do too');