{

Welcome to my blog !


How to Convert string to/from Date in Typescript?| Javascript examples

December 3, 2022 ·  3 min read

This tutorial is about converting string to/from Date in javascript with examples. These examples work in typescript it is a superset of javascript. javascript String and Date types string is an object that holds the sequence of characters enclosed in double-quotes. Date objects have default current date and time in typescript. Date with default constructor returns current date-time. The date object holds different timezones - GMT and UTC....

Es6 WeakSet tutorials class examples in javascript | Typescript

December 3, 2022 ·  3 min read

WeakSet is one of the collection classes similar to the Set class in ES6. , Other Classes are Set, Map and WeakMap. WeakSet is a Set class that stores the collection of weak object references, that is if the reference of the object is null, the object is automatically garbage collected. So WeakSet saves weak references of an object. if the object is referenced/destroyed, the Garbage collector automatically removes the object from WeakSet, and memory consumption is less....

Different between console.dir vs console.log in javascript

December 3, 2022 ·  3 min read

In JavaScript, the front-end developer uses a console for debugging the application. The console is the object in JavaScript used to log the variables, strings, and data structures during debugging applications in the browser. Check my other post about console object in JavaScript. Comparision Console.log with console.dir in javascript Console.log Console.dir Used for debugging purposes to print any value to console Useful data in a navigation tree format to console....

Difference between ES6 Promise and RXJS Observable ?

December 3, 2022 ·  3 min read

This blog covers the difference between observable and Promises observable and promises in Javascript with examples. Observable and Promises are used to handle the asynchronous calls in a javascript. These are helpful to consume the REST API calls in front-end applications like angular, react and vuejs as well as server-side applications with node environments. Promises are the latest features in javascript(ES6) which are used to do asynchronous operations. Observable in the RXJS framework is used to do many asynchronous calls, able to provide extra features such as canceling the operation....

Difference between == and === in the swift example

December 3, 2022 ·  2 min read

In Swift, there are two equal operator types. Double equal (==) and double notequal (!=) operator Triple equal (===) and triple not equal (!==)operator Swift Identity operator Double equal operator(==,!=) checks if two objects contains equal data or not. Triple equal operator(===,!==) checks if two objects reference is same or not. Here is an example of primitive types 22 === 1 // false 22 === 22 //true 22 == 1 // false 22 == 1 // false == checks the values are same, === checks values and reference type are same....

Subscribe
You'll get a notification every time a post gets published here.