Read more

Show more

Loops Imagine you're in a grocery store, and you need to buy apples. You start at aisle 1, pick up an apple, then move to aisle 2, pick up another apple, and so on until you've visited all the aisles. That's like a loop, repeating a task until y…

Continue Reading

Variables Think of variables as boxes. You can put stuff in them, like toys or snacks. But sometimes you forget what you put in them, and that's when you need to label your boxes with names like "favorite_toy" or "midnight_snack".

Continue Reading

JS - What is output Question 5

Understanding Object Assignment in JavaScript Let's explore how object assignment works in JavaScript using the following example: let c = { greeting: 'Hey!' }; let d; d = c; c.greeting = 'He…

Continue Reading

JS - What is output Question 4

Understanding Unary Operators in JavaScript Let's explore how unary operators behave in JavaScript using the following examples: +true; !'Lydia'; What do you think the result of each exp…

Continue Reading

JS - What is output Question 3

Understanding Arrow Functions in JavaScript Objects Let's explore how arrow functions behave within JavaScript objects using the following example: const shape = { radius: 10, diameter() { return …

Continue Reading

JS - What is output Question 2

Understanding setTimeout in JavaScript Loops Let's explore how setTimeout() behaves inside JavaScript loops using two different examples. Example 1: Using var keyword for (var i = 0; i < 3; …

Continue Reading
Load More No results found