You forgot to ask a question.
Quote:
I haven't write any yet because I am a beginner and new to Java
Java and JavaScript are 2 different beast for different usages. You have to make your mind and choose 1 of them.
Quote:
I am a beginner student. I need to write javascript code for my assignment on how to build an online grocery shopping store
This kind of project is not for absolute beginner. Learning programming is done with projects that get progressively more complicated. If someone make you start with such a project, look for another teacher.
To get started:
- You need to list all features of the project. UML diagrams can help.
Unified Modeling Language - Wikipedia[
^]
- You need to design a database for the project. It depend on the features you want.
- If JS, your project is split in 2 parts: on client side, HTML and JS, on server side, probably PHP and SQL server.
W3Schools Online Web Tutorials[
^]