I use this word before a variable to define it
What is let?
Using this effective coding technique me and my bestie just finished this project working together
What is Pair Programming with the pilot/copilot method?
Print all even numbers from 1-15
What is for OR while loop?
const question1 = (num) => {
console.log(num + 5);
};
question1("3");
What is 35?
The COAT! Coach Of All Time
Who is Coach Asim, Coach Nando, Coach Naomi, Coach Sarahi, and Coach Sadeem?
Without me I will never know what the user inputs
What is READLINE?
What is require("readline-sync")?
Talking to me without expecting a response could lead you to the answer you need
What is the Rubber Ducky Method?
Use me when playing a guessing game and you want to keep asking for input
What is while loop?
const question2 = () => {
let num = 321;
function innerFunction() {
let num = 123;
}
innerFunction();
console.log(num);
};
What is 321?
What is a local scope?
Almost every choice you make in life could be written in this format
What is if/else statements?
I'm frequently used when you need to know if a number is even or odd
What is modulo (remainder)?
Print every element in a list individually on its own line
What is for loop?
const question3 = () => {
for (let i = 0; i < 5; i++) {
for (let j = 0; j < 2; j++) {
console.log(`Hi`);
}
}
};
question3();
What is Hix10?
Create me outside of functions and classes and I can be used anywhere
What is global scope?
Sometimes you need to make your own type
What is class or object?
A way to get the last element of a list without knowing how long it is
What is array[array.length -1]?
Adding user input to an array till the user says stop
What is while loop?
const question4 = () => {
let food = ["Sushi", "Burger", "Pizza"];
food.push("Shawarma", "Tacos")
console.log(food.pop());
};
question4();
What are Tacos?
My existence is short as I only live inside a function
What is a parameter?
A way to use data outside of a function when it finishes
Use me when you need to remove an item from the middle of a list
What is Array.splice(indexToRemove, 1)?
Counting to 10 every time the user says Y and stopping when they say N
What is a for and while loop?
const question5 = () => {
let dog = {
name: "Rico",
age: 3,
breed: "Golden Poodle",
};
dog.breed = "Golden Doodle";
console.log(`${dog.name} is Sadeem's ${dog.breed}!`);
};
question5();
What is Rico is Sadeem's Golden Doodle!?
X makes me True
9 > x && 6 <= x && x != 5
What is 6, 7, or 8?