JavaScript has become the programming language of the Internet and is finding an increasing number of uses elsewhere. The only really modern version of Basic is Microsoft Visual Basic which only exits for Windows. Here is the JavaScript version of the program for computing the average of three costs. This is going to get a little technical, so please be patient. To a computer everything is a series of numbers - a Beethoven sonata or Metallica concert, the Mona Lisa, a video clip of a space shuttle launch, a novel, a video game, etc.
Numbers are the only thing that computers understand.
So to the computer, everything consists of a series of 1s and 0s. A bit can have a value of either 0 or 1. With binary numbers we do exactly the same thing. See the chart below. Notice that in the decimal system, the digits moving from right to left within a number represent successive powers of 10, and in the binary system as you move from right to left the bits represent successive powers of 2.