JavaScript-primer

JavaScript Basics

JavaScript

The primary programming language of the web, primarily used for adding functionality to websites. JavaScript is a general purpose multi-paradigm programming language with dynamic typing.

Learn more: https://developer.mozilla.org/en-US/docs/Web/JavaScript

Paradigm

A style of programming. Oftentimes languages are built with a specific paradigm in mind, but JavaScript is known as a multi-paradigm language, because it allows for programming in a variety of paradigms. Some of the major paradigms of JavaScript include:

Primitive

The most basic data types of a language. In JavaScript, there are 7 primitive types:

JavaScript has a typeof operator that can get the type of a value as a lowercase string. However, do be aware that this function does have some special casing. For example, typeof function will return "function" even though functions are just objects.

Learn more: https://developer.mozilla.org/en-US/docs/Glossary/Primitive