ADAkash Deshpandeinakashdeshpande.hashnode.dev·Aug 10, 2021 · 4 min readDifference between var, let and constDeclaring variables in JavaScript since ES6 can be done in different ways. Most prominent of those are using var, let and const. 1. Basic example on var Consider the examples below: /* Example 1 */ x = 10; function updatex() { x = 20; } updatex(); ...01V
ADAkash Deshpandeinakashdeshpande.hashnode.dev·Jan 26, 2021 · 7 min readHow to: sticky top nav-bar (HTML + CSS)A common CSS newbie issue we face is, how to code a sticky top bar. This could be the nav-bar, a quick contact bar, quick access bar, etc. Let's assume we want to build a top nav-bar. So the requirements are: Nav bar should be on top It should stick...00