educative.io

Educative

Downloaded source code error: app is not defined

Hi the downloaded code gives me this error.

node index.js
ReferenceError: app is not defined

how should I define the app?
Thankyou

Hi @Tonyk,

This is Fatimah from Educative. Thank you for reaching out to us.

It seems that you might be missing some node configuration variable named app. However, you do not need to use node for this application. Please try to link the css and js to the html using the <link> and <script> tag instead and open HTML file using the browser.

I hope this solves the problem.

Thank you for reaching out! Please feel free to get in touch if you have any further questions or concerns.

Best regards,
Fatimah Abdullah | Developer Advocate
Educative

1 Like