Just curiously, what's wrong with this?
(Other than the insult itself...)

    (prompt("What's your name").length) <= 6)
console.log("You are very smart")
console.log("You need serious help!");


Have you covered the syntax of an if statement, yet? There are expected code blocks in the statement (unless it is on one line, but that's for later).

if (condition) {

} else {


The curly braces are the block delimiters that tell the interpreter where all the code to execute for each branch is located.

For the sake of posting to get help, please treat your reader seriously and spare us the chiding humor.


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