String is not right for console


if ( “myName” .length>=7) {
console.log(“you have long name!”);
else {
console.log(“you have short name!”);

i too getting the error same error string is not right for console it seems

28. Conclusion

A link to the exercise, please.

That looks like a variable written in the quotes. Did you input or set the variable earlier?

var myName = "Wee Gillis"

if (myName.length >= 7) {

} ...


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