- JavaScript Projects for Kids
- Syed Omar Faruk Towaha
- 438字
- 2021-07-16 09:34:34
Chapter 1. Exploring JavaScript in the Console
Before we start talking about lines of codes, objects, variables, and so on, we need to know what JavaScript is. JavaScript is a programming language that is used to add interactivities to the web pages and build web applications. Static websites are not very popular these days, therefore, we use JavaScript to make our websites interactive.
Some people also call it a scripting language as it is an easy language and does not require compilers like other languages. JavaScript was not designed as a general purpose programming language, it was designed to manipulate web pages. You can write a desktop application using JavaScript. JavaScript can also access your machine's hardware. You can try making a desktop application with a software development kit (SDK) such as PhoneGap for mobile or the Microsoft app SDK for desktop. The JavaScript codes are interpreted on web pages and then run by a browser. Any modern Internet browser, for example Firefox, Safari, Google Chrome, UC Browser, Opera, and so on, supports JavaScript.
Note
A compiler is a computer program that processes codes and turns them to machine language. Making a website interactive means adding features that are controlled by the users to the website. For example, online registration forms, online calculator, and so on. The Static website has fixed objects and contents and it displays the same information to all the visitors.
Basically, JavaScript is included on an HTML page or written on a separate file that has a .js
extension. If you know nothing about HTML, don't worry as you will learn about it in Chapter 3, Introducing HTML and CSS. So, where can you use JavaScript?
The answer is simple, you can do the following:
- You can create an active user interface.
- You can control web browsers.
- You can validate user inputs (if they are typed wrong).
- You can create custom web pages that can pop up on the browser, holding information or images.
- You can create dynamic pages without Common Gateway Interface (CGI). CGI is used by the web servers to process a browser's information.
Note
The thing that you should remember is JavaScript is not Java, the programming language developed by Sun Microsystem.
Throughout this book, we will use Google Chrome as the default browser and Atom as the text editor.
If you do not have these two software already installed on your computer, it is necessary to download and install them.
We will use the Atom text editor as it is a cross-platform editor, has a built-in package manager, does smart autocompletion, and has a lot of other advantages.
- Spring Boot 2實(shí)戰(zhàn)之旅
- 觸·心:DT時(shí)代的大數(shù)據(jù)精準(zhǔn)營(yíng)銷
- The Android Game Developer's Handbook
- Android開發(fā)精要
- Mastering Ember.js
- 少年輕松趣編程:用Scratch創(chuàng)作自己的小游戲
- 區(qū)塊鏈架構(gòu)與實(shí)現(xiàn):Cosmos詳解
- 從程序員到架構(gòu)師:大數(shù)據(jù)量、緩存、高并發(fā)、微服務(wù)、多團(tuán)隊(duì)協(xié)同等核心場(chǎng)景實(shí)戰(zhàn)
- VSTO開發(fā)入門教程
- MySQL數(shù)據(jù)庫管理與開發(fā)(慕課版)
- Learning Apache Mahout Classification
- PLC應(yīng)用技術(shù)(三菱FX2N系列)
- SQL Server數(shù)據(jù)庫管理與開發(fā)兵書
- Frank Kane's Taming Big Data with Apache Spark and Python
- Visual FoxPro 6.0程序設(shè)計(jì)