Skip to main content

Posts

Showing posts from August, 2020

The ever so common var, let and const

 So in JavaScript world, in whichever way you go, you finally end up with some very basic concepts.   I skipped certain basics while learning JavaScript. Later in life, I regretted it, but then, of course, you don't repeat the same mistake twice. So the very common and pretty basic thing you could see in JavaScript is the concept of  var, let  and  const.   What are they? How do they differ from each other?   Simply put  var, let  and  const  are keywords within JavaScript. All three of them are used to declare a variable. So why do we need three of them? JavaScript is weird. You can even use a variable without initialization in JavaScript. So why take the time to write a keyword. Now for JavaScript, there is a concept called global scope. In a simple browser where you could see JavaScript quite common, the global scope refers to the window object. And in the NodeJs module, this will be the global scope of the module. So if you simply don't initialize a variable JavaScript look

Aah..the costly hobby of typing on a mechanical keyboard

 Lockdown happened swift and quick in India. Come forth April I am surfing through the internet and subreddits. I found one particular subreddit named mechanical keyboards. Until then I was happy with my two membrane keyboards, I could game, I could type at a blistering pace (so I thought) everything was normal. But then this clicky heavenly beauty strikes my mind. I could not take it out of my mind. The sweet sweet sound of the key being pressed on a clicky switch, the smoothness of the linear and my personal favourite of the tactility. After many research and study, I decided to buy a mechanical keyboard. But by then the whole world was changed. I learnt that no decent mechanical keyboards are cheap and to get a hold on one of them in India is not an easy feat. After researching a lot, importing one was not an option. The import duty exceeds even 100% some times.    Meckeys was a super cool site to buy mechanical keyboards in India. Thanks to them (but not fully satisfied since they