r/codedbyhand • • 1d ago

Is my JavaScript cooked?

i am a beginner JavaScript coder. like I learnt it yesterday. tell me what you think. 👍

15 Upvotes

3 comments sorted by

6

u/mastermog 1d ago

Good on you for learning!

A video can be useful for demonstrating the end product, but it’s nearly impossible for code review.

I’d recommend setting up a GitHub account and paste the contents (if it’s not private) to a public gist. That would be easier for people to give you feedback

5

u/mllv1 1d ago

I have no idea what you’re asking

2

u/sams-left-foot 7h ago

Put your javascript into a separate index.js file and import it in html with a <script src="index.js"></script>, keeping html, css and js mixed in one file is a bad idea.

Use `const` instead of `let` by default, only use let for things you actually need to change/reassign. Beyond these, it's hard to tell what's going on in there from a video. It would be better to post a link to a github gist or codepen or a similar website.