Ternary Operators can clean up your code

JavaScript Syntax for ternary operators

(condition) ? true : false;

Use Case

Consider a situation where you need to work with 3 variables where the assignment of one variable depends upon comparing the other 2 variables. Continue reading “Ternary Operators can clean up your code”

Call Stack and Stack Overflows

In computer science, a call stack is a stack data structure that stores information about the active subroutines of a computer program. This kind of stack is also known as an execution stack, program stack, control stack, run-time stack, or machine stack, and is often shortened to just “the stack”. Continue reading “Call Stack and Stack Overflows”