This site uses tracking technologies. You may opt in or opt out of the use of these technologies.

What is Javascript?

Javascript is a versatile, high-level programming language primarily used for adding interactivity, logic, and dynamic content to websites.

1/1

How Javascript runs in the browser vs. on the server

Javascript can run both in the browser (client-side) and on the server (server-side), but the environments and execution contexts are quite different.

1/2

Variables (var, let, const)

In Javascript, there are three main ways to declare variables: var, let, and const. Each has its own use case and behaves differently in terms of scope, hoisting, and mutability.

2/1

What is var Hoisting in Javascript

Hoisting in Javascript refers to the behavior where variable and function declarations are moved to the top of their containing scope during the compilation phase, before the code is executed. This means that you can use variables and functions before they are actually declared in the code.

2/2

Javascript Data Types

JavaScript has several primitive and non-primitive (or complex) data types

2/3

Basic operators

In JavaScript, operators are symbols that allow you to perform operations on values and variables.

2/4

Comments and code readability

JavaScript comments and code readability are essential for maintaining clean, understandable, and maintainable code.

2/5

Conditional statements in javascript (if, else if, else, switch)

In JavaScript, conditional statements are used to perform different actions based on different conditions.

3/1

Loops (for, while, do...while)

JavaScript offers several looping structures to help execute code repeatedly based on certain conditions.

3/2

Breaking and continuing loops

In JavaScript, you can control the flow of loops using break and continue statements

3/3

Defining functions in Javascript (function keyword, arrow functions)

In JavaScript, functions can be defined using several different syntaxes, including the function keyword and arrow functions. Each has its own use cases and behaviors.

4/1

Javascript Parameters and arguments

In JavaScript, parameters and arguments refer to values passed into functions, but they serve different roles in function definition and invocation.

4/2

Functions Return values

In JavaScript, functions can return values to the code that calls them, which allows you to use the result of the function in other parts of your code.

4/3

Javascript Scope (local vs. global)

In JavaScript, scope refers to the context in which variables and functions are accessible. The two main types of scope are global and local (block or function).

4/4

How Hoisting Works for Functions

hoisting is a behavior where variable and function declarations are moved to the top of their containing scope (either the global scope or a function scope) during the compilation phase, before the code executes.

4/5

Javascript Arrays (creation, basic methods like push, pop, shift, unshift)

In JavaScript, arrays are versatile data structures that can store multiple values in a single variable. They are particularly useful when working with lists or collections of data. Here's an overview of creating arrays and using some basic methods like push, pop, shift, and unshift.

5/1

Javascript Objects (key-value pairs, accessing properties, nested objects)

JavaScript objects are a fundamental data structure consisting of key-value pairs.

5/2

Javascript working with arrays of objects

Working with arrays of objects in JavaScript is common when managing lists of data, like users, products, or any structured information.

5/3