Problemas no primeiro exercício da aula 3


#1

Olá pessoas, estou começando aqui no Codecademy e estou com problemas para encontrar qual o erro no meu código abaixo, não consigo acertar a aula 3. Alguém pode me dar uma luz?

https://www.codecademy.com/pt-BR/courses/javascript-beginner-pt-BR-hn3gi/0/1?curriculum_id=5355c2d8516bcbd912000009


var speed = 65;
if (speed > 80) {
	console.log("Reduza a velocidade");
	} 
else {
	console.log("Dirija com seguranca");
}


#2

@84luizfernando,
The solution:
Use following code

var speed = 65;

// Complete a condicao nos ()s na linha 4
if (speed >80 ) {
	// Use console.log() para exibir "Reduza a velocidade"
    console.log("Reduza a velocidade");
} 
else {
	// Use console.log() para exibir "Dirija com seguranca"
	console.log('Dirija com seguran\u00e7a');


}

#3

I got stuck in this for a long while until find out this answer to know why the heck it was going wrong!!
How could they create something like this and do not include latin characters?!?
I'm pissed off!!!


#4

@bbombachini
But you are becoming a good programmer
as you found a solution to the problem at hand :skull_crossbones:

Reference

google search
== the Book ==
javascript [your question] site:developer.mozilla.org

== discussions / opinions ==
javascript [your question] site:stackoverflow.com

== guidance ==
www.crockford.com
http://javascript.crockford.com/code.html <---JavaScript code-convention
http://javascript.crockford.com/survey.html
https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript
www.developer.mozilla.org/en-US/docs/Web/JavaScript/Guide
http://stackoverflow.com/questions/9549780/what-does-this-symbol-mean-in-javascript
http://stackoverflow.com/questions/3755606/what-does-the-exclamation-mark-do-before-the-function
http://stackoverflow.com/questions/6260475/how-to-the-operator
http://stackoverflow.com/questions/336859/var-functionname-function-vs-function-functionname?rq=1
// Liskov Substitutability Principle
// YAGNI (You Ain't Gonna Need It).

The following links may be disabled in the near future !!

Code-Year
https://www.codecademy.com/en/tracks/code-year?jump_to=4fce4211279bae0003006265

teach yourself javascript site:codecademy.com
https://www.codecademy.com/en/tracks/teachyourself


#5

Oh man, so it´s kinda like a error in the code?! Well, anyways... Thx a lot you guys!


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.