Variables and Mathematical Assignment Operators in JavaScript, Codecademy's Intro JS, Variables 2022

Channel:
Subscribers:
7,740
Published on ● Video Link: https://www.youtube.com/watch?v=TsPqa-QZFPU



Duration: 4:52
144 views
3


In this lesson we take a look at how we are able to use variables with math operators in order to calculate a new value for that variable. When we use the let keyword to declare a variable, we are able to use mathematical assignment operators to quickly add, subtract, multiply, or divide a value from our variable. Instead of writing a long hand statement like x = x + 10 we are able to write it shorthand by saying x += 10 and this would accomplish the same thing. This same concept can be applied when subtracting, multiplying and dividing variables and it will work just as well by only switching our math operator. We see examples for addition, subtraction, multiplication, and division in this video. Understanding Mathematical Assignment Operators with variables is a key concept in understanding JavaScript and many other programming languages!




Other Videos By We Will Code


2022-02-17Understanding What are Conditional Statements in 2022, JavaScript Programming with Codecademy
2022-02-17History of JavaScript Versions, ES6 and Before, JavaScript History Introduction, Codecademy Article
2022-02-17Learning JavaScript, Intro Quiz, Introduction to JavaScript Quiz on Codecademy Programming 2022
2022-02-17JavaScript Dog Years Converter, Convert Human Years to Dog Years 2022, Learn Programming, Codecademy
2022-02-16JavaScript Kelvin Weather Converter 2022, Kelvin to Celsius to Fahrenheit JavaScript Code Examples
2022-02-16Review of JavaScript Variables, Review Variables in JavaScript Codecademy Course, Learning to Code
2022-02-16JavaScript typeof Operator 2022, Codecademy Variable Section typeof Operator Explained, JS Coding
2022-02-16What is String Interpolation in JavaScript, String Interpolation Explained, Codecademy Coding 2022
2022-02-16String Concatenation Explained, 2022 Programming with JavaScript on Codecademy, String Concatenation
2022-02-16Increment and Decrement Operator 2022, Programming Basics in JavaScript, Codecademy JS Course Guide
2022-02-15Variables and Mathematical Assignment Operators in JavaScript, Codecademy's Intro JS, Variables 2022
2022-02-15JavaScript const Variable 2022 Programming for Beginners, Codecademy's Intro to JS Programming
2022-02-15Create a Variable, let Keyword 2022, let Variable JavaScript Keywords 2022, Master JavaScript
2022-02-15Codecademy JavaScript Course 2022, Create a Variable using var Keyword, Learning to Program 2022
2022-02-15An Introduction to JavaScript Variables 2022, What are JavaScript Variables, Codecademy JS Section
2022-02-15Codecademy's Introduction to JavaScript Review, End of Section 1
2022-02-13Get Second Star Rank in Pokemon Legends Arceus, Get Feather Balls and Super Potion Crafting Recipe
2022-02-13Built-in Objects in JavaScript 2022, Generate Random Number, Check if Number is Integer, Codecademy
2022-02-12Meeting Arezu from the Diamond Clan on Pokemon Legends Arceus, Nintendo Switch 2022 Newest Games
2022-02-12The Frenzy of the Lord of the Woods, Grandtree Arena, Defeating Lian and Irina, Defeat Noble Kleavor
2022-02-11A Request from Mai, Battle Akari, Meet and Defeat Mai, Battle the Alpha Kricketune, Pokemon Legends



Tags:
Coding
JS
JavaScript
Programming
Tutorials