Code wrong for basic js skeleton?


#1

Hi,

I am on the first task for the interactive newsreader website and I seem to of messed the code up for the basic skeleton, however I can't see what's wrong.

Here is my code;

var main = function() }
};

$(document).ready(main);

The prompt box says "Expected ' { '


#2

Hi Darrenlawes,

Try swapping the first closing curly brace (}) for an opening one ({) :)


#3

Thanks - noob error :smile: