Javascript-Website


Basics

JavaScript is a programming language used to make things do things. For example when a button is pressed it does something. JavaScript is written as functions that do something when they are called.


Syntax

JavaScript can be written inside of an html document or externally as a .js file. In JavaScript the main way that it works is that you declare a function, you tell it what it does and it does it. Javascript can be used to change html or css when it is triggered.

Table Of Important Commands

Name What It Does Example
Let Declares a variable/variables Let x
Const Declares a constant that wont change const x=10