Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: How come I don't get a box when I add an eventlistener? Date: Thu, 10 Feb 2022 19:47:04 +0000 Organization: A noiseless patient Spider Lines: 115 Message-ID: <874k56ld1j.fsf@bsb.me.uk> References: <24969684-2577-4eb1-b316-0b490769f615n@googlegroups.com> <87y22jlnaa.fsf@bsb.me.uk> <2905cd2e-2dd1-470d-96d9-bb3ac82b45aan@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="44ac79418358714662faf2c71e7e4cc5"; logging-data="12844"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//ciyVifk9wo8/QS7eWnfBY+fUpHalYv8=" Cancel-Lock: sha1:z3dHzoY9vV20kdGvvgPucqvTolM= sha1:uuBoY5Ezb5WZc82rAjArj//gx5c= X-BSB-Auth: 1.f58fccb10e3a2e91875c.20220210194704GMT.874k56ld1j.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:40782 chad altenburg writes: > On Wednesday, February 9, 2022 at 1:53:46 PM UTC-8, Ben Bacarisse wrote: >> chad altenburg writes: >> >> > When I comment out the event listener code, I get a black >> > box. However, when I don't, I don't get a black box. Why? >> Because there is a syntax error. The code can't run if the interpreter >> can't make sense of what you've written. >> > >> > >> > >> > >> -- > > And I still don't get why it's not detecting the right arrow key... It still has errors, and you still have mixed up names. You can't program like this. You need to learn to find this sort of basic error for yourself or you will be posting here 20 times a day. Find out how to get help for yourself. Do you know how to view the console in your browser? > > > > > -- Ben.