Now with new language features Javascript swap variable values very easily. While doing laundry a thought popped up in my mind and how it relates to JavaScript. Imagine the following picture. Now how you could swap clothes from these two machines. You do need a temporary container to hold clothes from side and make the […]
Tag: javascript
Use Recursive Types in Typescript
Interface is such a nice feature in Typescript for custom static type checking. Main reason is to make your code less error prone but I use it primarily for intellisense. Today we will be discussing recursive types. I need to modal the accordion in HTML using following object. { title: “Parent”, expanded: true, subItems: [ […]
Dealing with JavaScript has never been easy for me. In JavaScript Today’s date is represented as 2017-11-23. It’s December but no where you can find 12 in it. That’s because months in JavaScript starts from “Zero”. That’s first confusion for you. Ionic comes with ion-datetime component which lets you easily choose date and time. With native UI and feel for your […]
Coding Activities for Week 07 2017
Well this series that I have just planned (out of nowhere) is more than a coding activity. Here I will document my normal day while working as a front end web developer. Coding: Looking at the graph, it started to elevate and satisfied my 3 hours pure coding commitment for just two days but didn’t […]
How To Reverse A String In JavaScript
JavaScript algorithm like how to reverse a string is a well know JavaScript Challenge. Solving it will really teach you different techniques of JavaScript string manipulation. In this article, we will be going through all the steps involved in successfully outputting a “Hello World” in its reversed form as “dlroW olleH”. So let’s get cracking. Problem The […]
