I had the following snippet of code and wanted to log an error only if whatever the block receives is an actual object with actual values. Needed a solution. The code calls a smart contract getter, using Web3.js , retrieves whatever the return value is, and returns its plain text representation…
Articles published under the JavaScript category
Here’s Why We Just Can't Agree on One JavaScript Framework
Indeed! Why can't we just get along and use one single JavaScript framework? Or two!? Here's what I think about this situation that a lot of people consider a problem. I think it's a huge opportunity, actually! This whole disagreement is actually one of the things that made JavaScript so popular…
Six Things About JavaScript Which If You Don't Know, Signal to Others That You Are Still A Beginner
This is a question I've struggled with a lot, while trying to optimise the way I interview people. I don't want to misjudge people, or evaluate them the wrong way, so I took some time and dug through my head, scoured the Internet for resources and narrowed down to a simple list. This is not a…
What do the three dots (...) mean in JavaScript?
The title of the article is from a question I was asked to answer on Quora . Below, is my attempt to explain what do the three dots do in JavaScript. Hopefully, this removes the fog around the concept, for people who will find this article in the future and have the same question. Updates Added…
ESLint backdoor: what it is and how to fix the issue
On Thu, July 12 2018 at 1:17PM GMT Andrei Mihailov — @pronebird reported the following issue with the eslint-scope module: Virus in eslint-scope? . The gist of it is that there was some malicious code added to the module's codebase and the affected version was 3.7.2. I'm saying it was because…