Home > Blockchain >  Chromes' console window prevents me editing a line once enter key is pressed
Chromes' console window prevents me editing a line once enter key is pressed

Time:11-13

I'm trying to perform a calculation in JavaScript using Google Chrome console. I declared 4 variables with assignations then pressed the enter key. A less -than symbol with an elevated period <. undefined was displayed? What's the undefined refer to? Well that's another issue. I then attempted to enter another global variable on the same initial line, but I'm unable to edit any text on that line. There has to be a simple explanation, nothing is set-in-stone in a console?

CodePudding user response:

Keep "Shift" Button pressed and then press "Enter"

CodePudding user response:

Dropped a major clanger alert! The reason why I could not enter any text on the line was because the console was opened within a live website. So it seems that I was inadvertinately modifying a running webpage. Usually I open files from notepadd then do my markup or I use the console editor at codecacademy. On that day I was searching for a console like the one you practice with at codecacademy. My goolgle search results mentioned the chrome-console window, so I began writing up some simple javascript, without realising the console was above a live webpage. Hey I'm new to this! Look at my score! Sorry for wasting everyones' time.

  • Related