-
Rock, Paper, Scissors in HTML, CSS, and JavaScript
Read more: Rock, Paper, Scissors in HTML, CSS, and JavaScriptRock, Paper, Scissors is a game in which two players make their hands ressemble a rock, paper, or scissors at the same time. The rules are simple: rock blunts scissors, paper smothers rock, and scissors cut paper. While the game is simple and easy to play in the real world, coding it in a high-level…
-
Stopwatch in HTML, CSS, and JavaScript
Read more: Stopwatch in HTML, CSS, and JavaScriptIn the previous post, I showcased my improved timer application written in HTML, CSS, and JavaScript. Every second, the value of the seconds input box would be decreased by 1, and if it went into negative numbers, it would be reset to 59 and the minutes input box would be decreased by 1 and so…
-
Timer in HTML, CSS, and JavaScript (version 2.0)
Read more: Timer in HTML, CSS, and JavaScript (version 2.0)After testing the timer from my previous post over a period of a few days, I have reached the unfortunate conclusion that the code was extremely overcomplicated, and also very buggy.
-
Basic countdown timer in HTML, CSS, and JavaScript
Read more: Basic countdown timer in HTML, CSS, and JavaScriptOver the past few days I have decided to put my acquired knowledge of HTML, CSS, and JavaScript to the test and write a timer application.
-
Wait X milliseconds in JavaScript
Read more: Wait X milliseconds in JavaScriptIn many programming languages, such as C, Python, and Java, there exist functions that allow you to postpone execution of code for a specified number of seconds or milliseconds.
-
Verify a user’s age with HTML and JavaScript
Read more: Verify a user’s age with HTML and JavaScriptTo sign up to many websites, you must meet a certain age requirement. To acquire a Google account, for example, you must be at least 13 years old. In the case you enter a birthdate that indicates you do not meet the age requirement for Google, you will be informed that you do not meet…
-
Simple calculator program with HTML and JavaScript
Read more: Simple calculator program with HTML and JavaScriptIn this article, I will be walking through how to write a simple calculator with HTML and JavaScript. This calculator will take two numbers and allow the user to choose from four buttons (add, subtract, multiply, and divide) on what they would like to do with them. The answer is given via a popup box.
-
Writing a dice game in C Part 1 — The Game
Read more: Writing a dice game in C Part 1 — The GameWhen trying to learn a programming language, writing a basic game can really help you understand the language in depth. Writing a game requires user interaction, so it can be a great way to familiarise yourself with acquiring input and working with it. Additionally, it can improve your understanding of programming concepts such as iteration…
-
How to convert denary to binary in C
Read more: How to convert denary to binary in CA binary number is a number that represents information or data stored in a computer with a combination of 0s and 1s. Denary is the standard number system which uses 10 digits (0-9) to represent all numbers.