Maia LLC, 2017. — 325 p. — ASIN B0727XJR94.
Use JavaScript to learn the fundamentals of computer programming. The fundamentals of programming are transferable to all programming languages and JavaScript is a fantastic language to learn with. Here is a sample of what you will learn:
Use variables to store data and perform calculations
Write if/else statements to make decisions
Write loops to repeat commands
Write functions to organize your code and make it reusable
Use arrays to store and process large amounts of data
Use the built-in objects in JavaScript to write more effective programs
This book is simply jammed full of examples, which will help you avoid frustration as you learn computer programming. The examples in this book include converting between Celsius and Fahrenheit, computing net pay, computing a sales discount based on the day of the week, computing compound interest, computing the future value of an investment, computing the payment and payoff amounts for a fixed interest loan, determining how long to invest in order to reach a target amount, a number guessing game, computing the volume of a cylinder, computing the distance between two points, computing roots using the quadratic formula, determining if a number is prime, finding the greatest common divisor of two numbers, computing the area of a triangle, computing the surface area of a pyramid, creating an array, filling an array, reversing an array, finding a value in an array, sorting an array, making an HTML document interactive using the DOM, storing data permanently using local storage, reversing a string of text, counting the occurrences of a character within text, extracting the family name from a person's full name, transposing musical chords, and many more.