if statement - satisfy condition
The code will assign the variable num a new value
1
. But it will only run if the condition is met.Adjust the condition such that the code inside the curly braces will execute and the console.log()
statement logs true
.
JavaScript
Console