Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

using mozilla console

  • 1 risposta
  • 0 hanno questo problema
  • 10 visualizzazioni
  • Ultima risposta di cor-el

more options

Please read the image. does it look like I am using the console window correctly? I am trying to interactively code. So, started with a very basic basic code. When I run it, i get an error. There must must be something wrong.

Please read the image. does it look like I am using the console window correctly? I am trying to interactively code. So, started with a very basic basic code. When I run it, i get an error. There must must be something wrong.
Immagini allegate

Tutte le risposte (1)

more options

If you use let and not var, then you can only define this variable once. So if you run the code a second time, then Firefox complains that you redefine the variable. You would either leave out the line with let a,b,c; or enclose the code in a {} block to make it local variables.

{
let a,b,c;
a=1;b=2;c=a+b;
console.info("a+b=",c);
}

È stato utile?

Richiedi supporto

Bisogna accedere al proprio account per rispondere nelle discussioni. Se non si possiede ancora un account, inserire una nuova richiesta.