SANI YUSUF
01010000 01110010 01101111 01100111 01110010 01100001 01101101 01101101 01101001 01101110 01100111
These 2 Are The Same
Programmer
Programming Language Code
Binary
Computer
English
French
Arabic
French
Java
JavaScript
Python
C
Just Like How We Have Different Spoken Languages With Different Writing Systems, The Same Applies For Programming Languages
Primitive Data Types Are Data Types That Are Built Into A Language By Default. They Are Building Blocks
let bankBalance = 10000; //This Is A Number
let salary = 10000; //This Is Another Number
let pi = 3.14; //This Has Decimals
let myName = "Sani Yusuf"; //This Is Text Or A String
let myCountry = "Nigeria"; //This Is Text Or A String
String Are How You Enter Text Or Words. You Must Wrap Your Text Inside " " To Tell JavaScript This Is A String.
It's Like How You Always Use A Capital Letter To Start A New Paragraph In English.
let isSaniRich = false; //This Is Boolean And Can Be True Or False
let isArsenalGreat = true; //This Is Boolean And Can Be True Or False
Booleans Are Used To Check & Compare values By Checking Their Truthness & Falseness
let daysOfTheWeek = ["Monday", "Tuesday", "Wednesday"];
daysOfTheWeek[0]; //This Is "Monday"
daysOfTheWeek[1]; //This Is "Tuesday"
Arrays Are Index Based And Have A Starting Index Of 0.
let birthCertificate = {
name: "Sani Yusuf",
favoriteClub: "Arsenal",
country: "Nigeria",
hasAlotOfMoney: "false",
bankBalance: 10000
};
birthCertificate.name; //This Is "Sani Yusuf"
daysOfTheWeek["name"]; //This Is Also "Sani Yusuf"
Objects Are Very Powerful And Have Some Array Like Properties
let bankBalance = 10000; //This Is A Number
let salary = 10000; //This Is Another Number
let myName = "Sani Yusuf"; //This Is Text Or A String
let myCountry = "Nigeria"; //This Is Text Or A String
let isSaniRich = false; //This Is Boolean And Can Be True Or False
let isArsenalGreat = true; //This Is Boolean And Can Be True Or False
let aVariableName = "This Is A Variable Value";
let avariablename = "This Is A Different Varable But Harder To Read";
- The "let" keyword is used to set a variable
- Variable Names Are Case Sensitive
let bankBalance = 10000; //This Is A Number
let salary = 10000; //This Is Another Number
let result = salary + bankBalance ; //This will be 10000 + 10000 = 20000
let myName = "Sani Yusuf"; //This Is Text Or A String
let myCountry = "Nigeria"; //This Is Text Or A String
let result2 = myName + myCountry; //This Is "Sani YusufNigeria"
Used To Perform Addition Operations.
Works For Strings & Numbers Alike
let bankBalance = 10000; //This Is A Number
let salary = 10000; //This Is Another Number
let result = salary - bankBalance ; //This will be 10000 + 10000 = 0
let myName = "Sani Yusuf"; //This Is Text Or A String
let myCountry = "Nigeria"; //This Is Text Or A String
//This Will Silently Give And Error NaN (Means Not A Number)
let result2 = myName + myCountry;
Used To Perform Subtraction Operations. Doesn't Work For Strings
let bankBalance = 10000; //This Is A Number
let salary = 10000; //This Is Another Number
//This will be 10000 * 10000 = 100000000
let result = salary * bankBalance ;
Used To Perform Multiplication Operations. Doesn't Work For Strings
let bankBalance = 10000; //This Is A Number
let salary = 10000; //This Is Another Number
//This will be 10000 / 10000 = 1
let result = salary / bankBalance ;
Used To Perform Division Operations. Doesn't Work For Strings
let bankBalance = 10000; //This Is A Number
let salary = 10000; //This Is Another Number
//This will be 10000 / 10000 = 1 And No Remainder So 0 Is the Answer
let result = salary % bankBalance ;
let bankBalance2 = 10; //This Is A Number
let salary2 = 9; //This Is Another Number
//This will be 10 / 9 = 1 With 1 As A Remainder 1 Is the Answer
let result2 = salary2 % bankBalance2 ;
let bankBalance3 = 10; //This Is A Number
let salary3 = 7; //This Is Another Number
//This will be 10 / 9 = 1 With 3 As A Remainder 3 Is the Answer
let result3 = salary3 % bankBalance3 ;
Modulus Is Used To Get The Remainder From A Division Operation. Doesn't Work For Strings
Hausa For Any Questions?