reading-notes

๐Ÿ—’๏ธ Class 06: Javascript

JavaScript (JS) is a scripting langue used on websites and other non-browser applications.

Its important to note that JavaScript is not the same as Java

What are variables in JavaScript?

Variables are containers used to store data.

What does it mean to declare a variable?

When we delcare a variable, we are telling the computer that we have a container that we will be using to store things. The 4 ways we declare variables in JavaScript are:

What is an โ€œassignmentโ€ operator, and what does it do?

The assignment operator assigns a value to the variable.

You can find examples of JS Assignments here.

What is information received from the user called?

Information received from the user is called the input. a couple of ways to get input include the prompt() which asks for users to type stuff into a textbox and confirm() which asks a user to confirm (returns a value true or cancel which returns a value of false).