JSON (Javascript Object Notation) is very light-weight, structured, easy to parse and much human-readable. JSON is the best alternative to XML when your android app needs to interchange data with your server. The JSON format was originally specified and developed…
Month: September 2019
What is Short-Circuit Evaluation in JS?
Logical operators (&&, ||, &, |) are used to reduce the complexity which can be used concisely. ANDoperator (&&) returns first false for false value and last true for true values. But, OR operator (||) returns first true for truely…
How to Require Function Parameter in JS?
In es6 default parameter were added which is a welcome change, but what if you want to throw error if a parameter was not provided. Well you can do it by calling a closure in default parameter which can throw…
How to get CLI Input in PHP?
Php Uses I/O Stream To Get input. So to get a input from user in cli. You can run the php file by opening your CMD in a Windows machine or Terminal in Linux based machine And Getting to the…