JavaScript Knowledge Base (4)

Learn JavaScript by learning the different terms and features.

Haeglo

Strings

In JavaScript, a string is a sequence of characters enclosed in single or double quotes. For example, you could create a string like this: let myString = "Hello, world!"; Once you have a string, you can use various methods and properties to manipulate it. For…

Continue reading...
Haeglo

Functions

Functions are a powerful and versatile feature of JavaScript that allow you to write modular and reusable code. A function is a block of code that can be called by other parts of your program. Functions allow you to define a reusable piece of code…

Continue reading...
Haeglo

Arrays

In JavaScript, an array is a data type that is used to store a collection of elements. Each element in the array can be accessed by a numeric index, which is a number that represents the position of the element in the array. For example,…

Continue reading...
Haeglo

For Loop

The For Loop In JavaScript, the for loop is a control flow statement that allows you to execute a block of code a certain number of times. It consists of three parts: the loop initialization, the loop condition, and the loop iteration. The loop initialization…

Continue reading...