Skip to content Skip to sidebar Skip to footer
Showing posts with the label Syntax

Why Is Reassigning Object.prototype Not Working?

Why this is not working? // this one works as I expected, when objSayHello() Object.prototype.objSa… Read more Why Is Reassigning Object.prototype Not Working?

Why Does Adding Parentheses Prevent An Error?

Why is it when I write {}.key = 0 in the chrome console I get an error: > {}.key = 0 > Uncaug… Read more Why Does Adding Parentheses Prevent An Error?

Is It Possible To Programatically Catch Javascript Syntaxerrors?

I don't think that this is doable, but wanted to throw it out to the community to confirm my su… Read more Is It Possible To Programatically Catch Javascript Syntaxerrors?

What Determines If A Javascript Function Is A Named Anonymous Function Versus A, Um, Regular Function?

Reading 'A re-introduction to JavaScript' I noticed something interesting about functions: … Read more What Determines If A Javascript Function Is A Named Anonymous Function Versus A, Um, Regular Function?

Can Someone Walk Me Through This Line

var types = { 'Grocery': 'gro', 'Restaurant': 'res', 'Bar… Read more Can Someone Walk Me Through This Line

Javascript Syntax Error Unexpected Token Illegal

function queue_instructions(){ var input_message = 'Commands w? Shows whos on the … Read more Javascript Syntax Error Unexpected Token Illegal

Switch Statement, It Does Not Work With Prompt

I just learned switch statements. I was practicing it by building something. When i set the value o… Read more Switch Statement, It Does Not Work With Prompt

Why Can't I Remove The Intermediate Variable In My Code?

I'm currently working with the spread syntax and ran into an unexpected issue. The below snippe… Read more Why Can't I Remove The Intermediate Variable In My Code?