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

Do We Have A Simpler Ternary Operator In Javascript?

I just saw this syntax in PHP: // Fetches the value of $_GET['user'] and returns 'nobod… Read more Do We Have A Simpler Ternary Operator In Javascript?

In Javascript, Can I Override The Brackets To Access Characters In A String?

Is there some way I can define String[int] to avoid using String.CharAt(int)? Solution 1: No, ther… Read more In Javascript, Can I Override The Brackets To Access Characters In A String?

What Does While (i --> 0) Mean?

I apologize if this a stupid question, but I cannot find the answer anywhere. How does the followin… Read more What Does While (i --> 0) Mean?

Increment A Number By Prefix And Postfix Operator

By mistake, I wrote: ++number++; and got this: Uncaught ReferenceError: Invalid left-hand side exp… Read more Increment A Number By Prefix And Postfix Operator

Javascript Logical Operators - And Vs. Or

I'm relatively new to Javascript and programming in general. Today while writing a simple tripl… Read more Javascript Logical Operators - And Vs. Or

What Is The Name Of "===" Operator In Javascript

I was wondering if there is widely recognized name for === operator. Something like 'IIFE' … Read more What Is The Name Of "===" Operator In Javascript

Why Does Delete Keep Array Elements?

Today I stumbled upon a question here on Stack Overflow - How do I remove objects from a javascript… Read more Why Does Delete Keep Array Elements?

Javascript Question Mark & Double Pipes

I am new to javascript and so far it is my understanding that: ? & : is used for 'if true, … Read more Javascript Question Mark & Double Pipes