RKRakesh Kumar Shawinblogsfromrakesh.hashnode.dev·Sep 15, 2022 · 1 min readVariable Hoisting in JavaScriptHoisting is a default behaviour in JavaScript where all the declarations (variables & functions) are moved to the top of the current scope. I’m gonna discuss on variable hoisting today. Let’s understand the variable hoisting with the below sample. a ...00
RKRakesh Kumar Shawinblogsfromrakesh.hashnode.dev·Sep 12, 2022 · 1 min readAlternative approaches in JavaScriptIt's a short article demonstrating alternative ways of writing some of the tradition JavaScript codes. The old of converting Number-Strings let num = 10; let newNum = num.toString(); let str = "10" let strNum = Number(str) The alternative way for ...00
RKRakesh Kumar Shawinblogsfromrakesh.hashnode.dev·Sep 12, 2022 · 2 min readArray FlatteningFrequently, we are thrown with a question where the interviewer expects us to make a nested array to a single array (in other terms, flatten an array). Although we have an existing Array method to flatten the array but sometimes they expects us to wr...00