Blog Archives

What’s My Change?

Your Challenge Using either Python or HTML + JavaScript, write a program that prompts the end-user to enter two values: Value 1: Amount to be paid by the customer Value 2: Amount received from the customer The program should then

Resistor Value Calculator

When designing electronic circuits you may need to use resistors. Each resistor has a resistance value expressed in ohms (Ω). Resistors are identified by a series of concentric coloured bands. Each band colour has a value which is used to

Tic-Tac-Toe Challenge

Ready for a real JavaScript challenge?
Within this blog post you will be given the HTML, CSS and JavaScript for a game of Tic-Tac-Toe. However the code is incomplete. our challenge will be to complete the code to get a fullty working game.

Creating tabs in HTML + CSS + JS

In previous posts we looked at how JavaScript can interact with HTML using: Event Handlers in HTML such as onClick, onFocus, onBlur… the DOM (Document Object Model) to access HTML objects using: document.getElementById(“objectId”) CSS is applied to HTML objects. Using JavaScript you

JavaScript: Click Me!

When working on HTML and JavaScript projects it is very likely that you will want to respond to events. For instance you may want to run some JavaScript code when a button is clicked. Examples of HTML events: When a

JavaScript: Working with Dates…

Working with Dates in computing can be quite tricky especially as we don’t always use the same date format around the globe. For instance in the UK dates are represented using the following format: dd/mm/yyyy. Let’s see how we could

JavaScript: When 2+2 = 22!

In our previous blog post we looked at how to retrieve values from various HTML form controls. For instance the following JavaScript code shows you how to retrieve the value typed in a textbox. See the Pen DwahE by 101

JavaScript: Accessing HTML Form Controls

Retrieving value from a Textbox: See the Pen DwahE by 101 Computing (@101Computing) on CodePen. Retrieving value from a Textarea: See the Pen tFJiI by 101 Computing (@101Computing) on CodePen. Retrieving value from Checkboxes: See the Pen asiqt by 101

JavaScript – How to read through a text file…

In this project we are looking at how to read through a text file using JavaScript. We will store a list of pupils in a text file. We are going to read through this list display its content on the

My ASCII Codes…

The ASCII code is used to give to each symbol / key from the keyboard a unique number called ASCII code. It can be used to convert text into ASCII code and then into binary code. It can be used

Can you explain this equation?

== and != are called comparison operators. They are used to compare two values and see whether they are the same (==) or check if they are different (!=). E.g.  = is used to assign a value to a variable.

HTML & CSS Editor: NotePad++

A text-editor will be required for you to type your code especially when writing HTML, CSS or Javascript code. Our recommendation is to use a free text editor such as Notepad++. There are other alternatives that would most likely be