Posts

Showing posts from November, 2015

How to increase your inference power

Image
Very recently a friend of mine complained to me of his incapacity of understanding and comprehending English passages. He could easily solve questions that required direct interpretation of the passage, but he failed when it came to inference of the thoughts of the author. I thus developed some techniques to increase the inference power. Tips for increasing your inference power     Inference power can be increased only with practise. But there are certain techniques which you can successfully employ in your normal reading practices everywhere and which can yield you better results. Go Slow               When you get a passage to read, I would advise to go slow through it. Especially when you have a tough passage to read, you must always go very slowly  through it.  The reason for this is that when you read slowly, your mind gets enough time to comprehend the sentences of the passage. A fast reader easily misses out the hidden inferences of the passages, and thus is at a

The ultimate ES5 JavaScript quiz

Image
So, you have just finished your supreme-js-learning-pack-for-idiots and coded some nice app and now are on the top of the world. You hail your code as supreme and think that now you have mastered everything. Then you are the right candidate for my quiz, which will test your abilities of dry running the program and knowing the idomatic ES5 (JavaScript) programming paradigms, along with some its usual quirks! :-) (Note: ES6 is not being tested here) JavaScript - easy to learn, hard to master! The quiz is subjective type. You are given a program snippet and are supposed to figure out the output. The program may  have an (intentionally inserted) error, so beware while deciding your answer. Assume that all snippets execute in a browser environment (in the global scope) with "use strict;" mode enabled. Each output has been tested on Chrome mainstream build and made browser independent. If you still feel your browser's console output is different, let me know in the