100 days of Miva: Day 7

It’s day 7 of the 100 days of Miva coding challenge and I continued on my JavaScript learning journey, learning about other types of operators, data types and so much more.
JavaScript Operators
Last time, I begun exploring the different types of JavaSc…


This content originally appeared on DEV Community and was authored by Abdulsamod

It's day 7 of the 100 days of Miva coding challenge and I continued on my JavaScript learning journey, learning about other types of operators, data types and so much more.
JavaScript Operators
Last time, I begun exploring the different types of JavaScript operators and stopped on the arithmetic operators which allow us to perform various mathematical operations on variables of different data types.

Assignment Operators
Assignment operators are used to assign values to variables in JavaScript. After declaring variables with keywords like let, var,
const, assignment operators are needed to attach values to the variables. There are different types of assignment operators including the simple assignment operator (=), addition assignment operator (+=), subtraction assignment operator (-=), multiplication assignment operator (=), division assignment operator (/=), exponentiation assignment operator (*=) and so on.
Assignment Operators

Assignment Operators

JavaScript Data Types
Values assigned to variables can be of different types from numbers to texts to conditional statements. JavaScript has various data types like strings for texts, numbers for integers and decimals(float), Boolean for true or false values and lots more.
JavaScript Data Types

Arrays and Objects
Arrays are used to declare multiple values in one variable. It is written in square brackets and the values are separated by commas. Arrays also allow for different data types to be declared inside one single variable.
Arrays are zero-indexed, meaning values in array are counted from zero upwards.

Objects are used to encompass multiple variables into one single line or block of code. They are written in curly braces and unlike arrays, have the variable names paired with their respective values before being separated by a comma. Objects are also zero-indexed and count their values form zero upwards.

JavaScript Data Types

More Data Types will be explored on day 8 and also so much more on this exciting JavaScript journey!

https://github.com/Abdul-Samod/100daysofMiva


This content originally appeared on DEV Community and was authored by Abdulsamod


Print Share Comment Cite Upload Translate Updates
APA

Abdulsamod | Sciencx (2024-08-27T00:46:29+00:00) 100 days of Miva: Day 7. Retrieved from https://www.scien.cx/2024/08/27/100-days-of-miva-day-7/

MLA
" » 100 days of Miva: Day 7." Abdulsamod | Sciencx - Tuesday August 27, 2024, https://www.scien.cx/2024/08/27/100-days-of-miva-day-7/
HARVARD
Abdulsamod | Sciencx Tuesday August 27, 2024 » 100 days of Miva: Day 7., viewed ,<https://www.scien.cx/2024/08/27/100-days-of-miva-day-7/>
VANCOUVER
Abdulsamod | Sciencx - » 100 days of Miva: Day 7. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/27/100-days-of-miva-day-7/
CHICAGO
" » 100 days of Miva: Day 7." Abdulsamod | Sciencx - Accessed . https://www.scien.cx/2024/08/27/100-days-of-miva-day-7/
IEEE
" » 100 days of Miva: Day 7." Abdulsamod | Sciencx [Online]. Available: https://www.scien.cx/2024/08/27/100-days-of-miva-day-7/. [Accessed: ]
rf:citation
» 100 days of Miva: Day 7 | Abdulsamod | Sciencx | https://www.scien.cx/2024/08/27/100-days-of-miva-day-7/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.