Here you will learn how to do some basic in Javascript!
note that somethings I mention have a 99% chance of being the wrong way to do them
My Button
Variables
let intVar = 1
let stringVar = "hello world!"
let booleanVar = true
let arrayVar = {}
you can create a variable by adding the word “let” followed by the name of your variable
Types of Variables
There are lots of difrint types of variables some of the main ones are bollen,int,string,array and many more!
Loops
Key Components Of a loop
(requrments){} the requrments is what makes the loop a loop and the {} is the looping code without these you will encounter an error as the loop is not properley made
for (let i = 0; i < 10; i ++){
console.log(i)
}
if then loop
let var = 9001
if (var == 9001) {
console.log("ITS OVER 9000)
}
While Loop
while(true){
}
if then else loop
let var = 9001
if (var == 9001) {
console.log("ITS OVER 9000)
}else{
console.log("skedaddle!")
}