About Javascript
JavaScript is a programming language that adds interactivity to websites. It's a core technology of the World Wide Web, and is used to create effects like image carousels, dropdown menus, and changing colors.
Important things to know about Javascript:
- What it's used for: JavaScript can be used to create interactive webpages, games, animated graphics, and database-driven apps.
- How it works: JavaScript is a client-side scripting language, which means the web browser receives the code in text form and runs it.
- How it's written: JavaScript's syntax is based on Java and C, and it supports object-oriented and functional programming.
- How it's extended: JavaScript can be extended with client-side or server-side objects. Client-side extensions allow applications to interact with the browser and user events, while server-side extensions allow applications to communicate with databases and perform file manipulations.
- How it's limited: JavaScript can't read or write arbitrary files on a hard disk, copy files, or execute programs without the user's permission.
- How it's used in games: JavaScript can be used to build games with HTML5 and an API like WebGL. Some JavaScript-based game engines include Phaser, GDevelop, and Kiwi.js.