if this is java then -> System.out.print("I am wrong");
javascript is -> console.log("I am wrong");
i presume you mean javascript but you should be careful as they are very different things.
if("to".length === 4){
console.log("I am right");
} else {
console.log("I am wrong");
}