Lexical Scope, Closures and Currying in JavaScript
This post describes the Lexical Scope, Closures and Currying Function in JavaScript and their relations with examples.
This post describes the Lexical Scope, Closures and Currying Function in JavaScript and their relations with examples.
This is one of the example of using recursive function in Java to find M power N (MN).
Print all the possible combinations of a given String using Recursive function in Java
One of the major feature of Java 8 is addition of Stream. It also has introduced the functional programming in Java. We will discuss different stream operations available in Collection, Array, IntStream with examples. We will also discuss the difference between Intermediate and Terminal operations.
Decorator design pattern is used to add a new feature on the existing object by wrapping it with a decorator class.
This post describes the best practices to define constants and configuration values in JavaScript using const and Object.freeze() and the difference between them.
This post describes the usage of various Object methods like Object.create(), Object.assign(), Object.freeze(), Object.seal() and many more available in JavaScript with examples.
A nice feature addition in ES2015 (ES6) was the introduction of let and const keywords for variable declaration. You can use var, let and const keyword interchangeably for variable declaration though it makes a difference in terms of their scope, usage and hoisting. If you are not aware of these differences then please continue to read…
The one light bulb and three switches puzzle has been asked several times in interviews to evaluate candidate’s analytical skills.
The Fruit basket puzzle comes under basic puzzles being asked in the interview.