Need help 7/7 just, wow


#1

its the hardest thing you can do


#2

look at this

var speed = 65;

// Complete the condition in the ()s on line 4
if (speed ) {
// Use console.log() to print "Slow down"
console.log("Slow down!");
}
else {
// Use console.log() to print "Drive safe"
console.log("Drive safe");

}


#3

@princedj I think you need to set your condition. This doesn't tell the computer anything:

if (speed )

You need a condition like this:

if (speed > 70)


#4

This would work. This would run the code inside the if statement as long as 'speed' is true.
For example:

speed = false;

when used in the statement, would not run the code in the if part, it would run the else part.


#5

@jibblyj I see what you are saying - thanks for clarifying. But I think for the purposes of this exercise, the condition needs to be set to compare it to a set speed, not true or false.


#6

I know, I was just saying that that could be a possibilty.


#7

@jibblyj ok gotcha :smile:


#8

im going to try something like that


#9

its saying syntaxerror: missing ( before statement


#10

now there saying:

It looks like you didn't print the correct string. Check your condition in the if statement, and your console.log statements.


#11

Can I see your updated code?


#12

i just did what you did

/ i can do emojisπŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜€πŸ˜†πŸ˜Ž

you see


#13

now its working thank you


#14

:+1:Β Β Β 


#15

lets chat πŸ˜πŸ˜…πŸ˜…πŸ˜…πŸ˜…πŸ˜…πŸ˜‡πŸ˜‡πŸ˜ŒπŸ˜ŒπŸ˜ŒπŸ˜πŸ˜


#16

are you a code genius or what