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

Javascript Variables, What Does Var X = A = {} Do?

I see in jQuery something like this: jQuery.fn = jQuery.prototype = {} Why is this being done? Isn… Read more Javascript Variables, What Does Var X = A = {} Do?

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?

Why So Many Semicolons In Javascript?

I tend to be a prolific user of semicolons in my JavaScript: var x = 1; var y = 2; if (x==y){do som… Read more Why So Many Semicolons In Javascript?

+ Operator Before Expression In Javascript: What Does It Do?

I was perusing the underscore.js library and I found something I haven't come across before: if… Read more + Operator Before Expression In Javascript: What Does It Do?

Syntaxerror: Unexpected Token { In Javascript

I am having an issue on my problem where the console is saying SyntaxError: Unexpected token { and… Read more Syntaxerror: Unexpected Token { In Javascript

How To Use Extended Js Syntax Available In New Browsers

I want to write a JavaScript function which uses new syntax (bigint literal 42n) when browser suppo… Read more How To Use Extended Js Syntax Available In New Browsers

Php Code To Convert Php To Js

I need some PHP code to convert some PHP into JS. functionality - I'm using common PHP functio… Read more Php Code To Convert Php To Js

Problems With Jade, Unexpected Character #

I keep getting: .../views/index.jade:20 18| alert(error) 19| }) > 20| server.on('warning'… Read more Problems With Jade, Unexpected Character #