JavaScript Refresher and Detailed Study - Part 1
JavaScript Refresher Introduction Strict mode in vanilla JS apps Symbol data type rarely used in typical web application development (as against libraries like React) Regular equality (==) is rarely used in modern JS coding; Strict equality (===) is the standard practice Curly Braces are commonly used for if Single-Statement Blocks except for early returns / guard clauses at the top of a function Nested Ternary statements formatting; Better options of object lookup or switch statement React: 'switch' is a statement and so illegal inside JSX; Multi-level ternaries are expressions which are valid in JSX and so commonly used; inline object lookup is a clean-code option Boolean(value) is cleaner than !!value Chaining nullish coalescing operator (??) across 3 or 4 variables is quite rare in modern React and application code Explanation of Destructuring code in above response ?? vs || in JavaScript expression chains Curly braces {} overload in JS/React: Object literal, ...