Define a function named main


#1

I feel like I'm from a different planet right now. I've followed all the exercises thoroughly (only a beginner) the site leads me onto this particular exercise. I'm so early on in the course it's ridiculous. The screen isn't even showing me any writing at all?? Is it supposed to be?? I'm writing it out anyway, even though it's invisible on the screen, and when I click 'save' etc it says the above ERROR MESSAGE: Define a function named main.

What?

https://www.codecademy.com/en/courses/web-beginner-en-zmn0b/0/2?content_from=make-an-interactive-website%3Ayour-first-program#


Literally nothing on screen


#2

@elbm16,
Have you tried

var main = function () {};

$(document).ready(main);

#3

I am having this problem too, and I put this exact code! The error message still says "define a function named main" even though I've already done it, where it was supposed to be (inside apple.js script file).