//Tabnine Academy//

How to Use Option Selected Property in JavaScript

How to Use Option Selected Property in JavaScript

The <select> element creates a drop-down menu on the rendered output. You can add options to the drop-down menu by using nested <option> elements. This creates

How to Get Cookies Using JavaScript

How to Get Cookies Using JavaScript

Cookies make it possible to store information about a web application’s user between requests. After a web server sends a web page to a browser, the

How to Change CSS Using JavaScript

How to Change CSS Using JavaScript

Cascading Style Sheets (CSS) is used to design the layout of a webpage. CSS is a set of structured rules describing the layout of elements in

How to Get an Object’s Keys and Values in JavaScript

How to Get an Object’s Keys and Values in JavaScript

In JavaScript, getting the keys and values that comprise an object is very easy. You can retrieve each object’s keys, values, or both combined into an

How to Use The Array forEach() Method in JavaScript

How to Use The Array forEach() Method in JavaScript

forEach() is an iteration method, and it is mainly used for the serial execution of functionality against a list of elements. Array forEach() is a method

How to Use switch Statements in JS

How to Use switch Statements in JS

A switch statement is a form of a conditional statement. It will execute a code block if a certain condition is met. Switch statements are used

How to Use the toUpperCase() Method in JavaScript

How to Use the toUpperCase() Method in JavaScript

JavaScript’s toUpperCase() method converts a string object into a new string consisting of the contents of the first string, with all alphabetic characters converted to be

How to Use the substring Method in JS

How to Use the substring Method in JS

The substring() method extracts a part of a string from the larger whole. Note: Be careful to not confuse substring() with the substr() method! The example

How to Use the substr Method in JavaScript

How to Use the substr Method in JavaScript

The substr() method extracts a part of a string from the larger whole. Note: Be careful to not confuse substr() with the substring() method! The example

How to Use the String.prototype replace Method in JavaScript

How to Use the String.prototype replace Method in JavaScript

The replace() method operates on a String, returning a new string with the specified changes. Note: JavaScript strings are immutable. This means that a new string

How to Use the String length Property in JavaScript

How to Use the String length Property in JavaScript

The length property of a String object returns the number of characters contained in a string. const str = ‘Get the length of this string’; console.log(str.length);

A Short Introduction to Loops in JavaScript

A Short Introduction to Loops in JavaScript

Loops enable the repeated execution of a function or a block of code. There are many types of loops in JavaScript that you can use to