What is wrong?


#1


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


I don't know what I did wrong. Which part is wrong?


 <script src="app.js">
    var main = function() {
    };
    $(document).ready(main);
    
    </script>


#2

Hi you alreadty in the app.js so you don't need to put the <script></script> tag around the code..


#3

It still doesn't work.


#4

>     <script src="app.js">
>     var main = function() {
>     };
>     $(document).ready(main);
>     
>     </script>

Since, you're typing the code in "app.js", you don't need to add "script" tag.
Also, there's a small window which pops up at the right side
of your editor, whenever you're doing something wrong.
Maybe, that could help. Also, you can try "Save & Submit Code".

>     var main = function() {
>     };

>     $(document).ready(main);

#5

I did the same thing and it doesn't work


#6

It was because you wrote the code in the wrong place. You have to put 'app.js box' among the three manu.


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.