The fundamentals of computer programming are transferable to all programming languages, and JavaScript is a fantastic language to learn those fundamentals. With JavaScript and this book, you will learn to • 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 and functions in JavaScript to write programs that are more effective This book is simply jammed full of helpful programming examples, including computing compound interest, the future value of an investment, the volume of a cylinder, the distance between two points, the area of a triangle, the surface area of a pyramid, roots using the quadratic formula. Other examples include determining if a number is prime, finding the greatest common divisor of two numbers, 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 document object model (DOM), storing data permanently using local storage, reversing a string of text, counting the occurrences of a character, extracting the family name from a person’s full name, transposing musical chords, and many more.
Rex A. Barzee is a professor of Computer Information Technology at Brigham Young University - Idaho. He is an inventor of two United States patents and the author of numerous courses and books. He holds a bachelor's and master's degree in Computer Science from Brigham Young University. Before becoming a professor he worked in industry for eight years as a software developer for the Southwest Research Institute, Hewlett-Packard Company, and the Utah State University Space Dynamics Laboratory. He worked on various projects including the HP-UX kernel, HP-UX OpenGL 3D Graphics Library, full-text indexing, image processing, and VoiceXML applications.