In this JavaScript tutorial for beginners, we are going to build a simple quiz app.
We are going to use pure JavaScript and a single HTML page for the project.
Note that the questions and other things are not hardcoded in the HTML. We are going to do all that in the JavaScript file.
Below are some items you might need as you go through this lesson.
Bootstrap CSS CDN
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
/>
Bootstrap JavaScript CDN
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
Git repo for the project
You can clone the completed lesson from the git repo.
The idea behind this lesson is to help beginners understand some practical use cases of the “theoretical JavaScript” they’ve been learning so that it all makes sense. A lot of beginners learn the basic syntaxes of JavaScript but don’t really know how to put together those things learnt in more practical sense.
Watch the lesson
If you have any question, drop in the comment.
Happy coding!