Welcome to my blog !


React loop array/object inside jsx render with examples

January 1, 0001 ·  3 min read

In this short tutorial, You learn how to iterate an array or object in jsx render function. In react components, Render method returns the single element renders to page. Sometimes, we want to display child components with for loop. we can use loop inside render jsx. however it is It is tricky to iterate and display child components This article explains about an employees array data is stored in react state, Display these in child component using react props with iteration in parent component....

How to get current epoch timestamp in javascript

January 1, 0001 ·  2 min read

In this post, You will learn multiple ways to get current epoc timestamp in javascript. epoch time is Unix style in milli seconds since 01/01/1971, that means it returns long number in milli seconds, This is epoch time or unix timestamp Javascript provides Date object provides date and time related things. Note: Javascript runs on client and server side. When you are dealing with date and time related values, You will not get correct results as these are dependent on client machines....

How to Convert Number to String or String to Number example in typescript

January 1, 0001 ·  5 min read

Did you face the situation where you want to parse number to string or string to number in typescript? During the development of angular/typescript based projects, I got many situations that are a result of writing this blog post. Number and String are basic Inbuilt primitive datatypes in typescript programming language. Every developer is already aware of these types. The number holds numeric values, String holds a group of characters enclosed in double or single quotes....

How to configure Character Encoding in Maven

January 1, 0001 ·  2 min read

Sometimes, java files compiling with maven or building war file get encoding error as described below. File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! maven character encoding source not working maven read the source code for building and installing artifacts, So It should define the character encoding to read and write files of different encoding types- ASCII, UTF-8 or UTF-16 maven uses default encoding of running platform, i....