Completed question 18 with a grade of 70% on https://robotsbuildingeducation.com
Provide an example of how conditional statements are used in real-world applications. #LearnWithNostr
Completed question 17 with a grade of 100% on https://robotsbuildingeducation.com
Which logical operator is used to check if both conditions in a conditional statement are true? #LearnWithNostr
Completed question 16 with a grade of 100% on https://robotsbuildingeducation.com
Write an `if-else` statement that checks if a number `num` is positive, negative, or zero, and logs an appropriate message. #LearnWithNostr
Completed question 15 with a grade of 100% on https://robotsbuildingeducation.com
Given the following code, select all the correct observations about logical errors or improvements:
```javascript
let x = 10;
if (x > 10) {
console.log('Greater than 10');
} else if (x = 10) {
console.log('Equal to 10');
} else {
console.log('Less than 10');
}
``` #LearnWithNostr
Completed question 14 with a grade of 100% on https://robotsbuildingeducation.com
What is the primary purpose of an `if` statement? #LearnWithNostr
Completed question 13 with a grade of 70% on https://robotsbuildingeducation.com
What is a function, and why is it useful in programming? #LearnWithNostr
Completed question 12 with a grade of 100% on https://robotsbuildingeducation.com
Write a function named `greet` that takes a name as a parameter and logs a greeting with the name. #LearnWithNostr
Completed question 9 with a grade of 0% on https://robotsbuildingeducation.com
Let's chat about the questions we've worked on so far. #LearnWithNostr
Completed question 8 with a grade of 100% on https://robotsbuildingeducation.com
Enter the command to change to the new_folder directory using a bash terminal #LearnWithNostr
Completed question 7 with a grade of 70% on https://robotsbuildingeducation.com
In your own words, explain the purpose of variables in programming. #LearnWithNostr
Completed question 7 with a grade of 65% on https://robotsbuildingeducation.com
In your own words, explain the purpose of variables in programming. #LearnWithNostr
Completed question 6 with a grade of 100% on https://robotsbuildingeducation.com
What keyword is used to declare a constant in JavaScript? #LearnWithNostr
Completed question 5 with a grade of 100% on https://robotsbuildingeducation.com
Declare a variable named `age` and assign it the value `25`. #LearnWithNostr
Completed question 4 with a grade of 100% on https://robotsbuildingeducation.com
Which code block correctly declares a list of items? #LearnWithNostr
Completed question 3 with a grade of 100% on https://robotsbuildingeducation.com
Select all the steps involved in correctly declaring a variable in JavaScript: #LearnWithNostr
Completed question 2 with a grade of 100% on https://robotsbuildingeducation.com
Arrange the steps with drag-and-drop and order how programs execute. #LearnWithNostr
Completed question 11 with a grade of 100% on https://robotsbuildingeducation.com
Arrange the steps with drag-and-drop to create and use a function. #LearnWithNostr
Completed question 10 with a grade of 100% on https://robotsbuildingeducation.com
Which of the following are primitive data types in JavaScript? #LearnWithNostr
Completed question 9 with a grade of 0% on https://robotsbuildingeducation.com
Let's chat about the questions we've worked on so far. #LearnWithNostr
Completed question 8 with a grade of 100% on https://robotsbuildingeducation.com
Enter the command to change to the new_folder directory using a bash terminal #LearnWithNostr