ここに私のコードです。変数が返された結果を得ることは可能ですか?
var notificar = prompt("qual é seu nome ?");
function teste(name) {
// return name +" Voce é o aluno";
var teste = return false;
}
if (teste == false) {
alert("Olá amiguinhos da tv (teste == false)");
} else {
alert(" Ola amiguinhas da tv ??? (teste == true)");
}
alert(teste(notificar));
私はそれがUncaught SyntaxError: Unexpected token return
エラーになります。このラインvar teste = return false;
で私の条件構造
関数内でテストする必要があるものはありますか? –