Welcome to my blog !

Netlify update node and npm version for production

January 1, 2022 ·  2 min read

This short tutorials explain about How to set node and npm versions in netlify? This post answers the below questions set latest nodejs version in netlify upgrade node and npm versions production build Change outdated nodejs version There are multiple ways we can upgrade the node version. First way, use .nvmrc file Adding .nvmrc file. Go to your project root folder, Create a file .nvmrc...

Naming style camel,snake,kebab,pascal cases tutorial example

January 1, 2022 ·  3 min read

programming Case name styles The string is a group of characters that contains word(s). A sentence is a group of strings or words In programming languages, there are different types of strings cases styles available There are various case styles for combing words to declare variables or functions or URLs in programming languages, This will be used as conventional notations only. All programming languages do not follow all cases. For example, Camel Cases in java are used for declaring variable names, kebab cases are used in lisp language for defining variable names....

Multiple ways to sort array JSON object with key date field in javascript

January 1, 2022 ·  2 min read

In this tutorial, Learn to sort an Array of numbers, strings, and objects in multiple ways. In my previous post, You learned how to javascript sort Array. Sorting Array of dates in javascript Let’s declare array of Dates var arrayJson = [ '2011-01-01 02:00:00', '2019-01-01 02:00:00', '2001-01-01 02:00:00', '2021-01-01 02:00:00', '2020-01-01 02:00:00', '2020-02-01 02:00:00', '1990-01-01 02:00:00' ]; Array’s sort() method sorts the array in ascending order by default. It uses a callback comparator to write a custom logic....

Multiple ways to know typescript version in Angular 12/13

January 1, 2022 ·  4 min read

This tutorial covers how to find a typescript version in an application developed with Angular Framework. Angular is based on the typescript. Typescript is a popular programming language from Microsoft. It is an extended javascript with typing and oops support. {{ toc }} Angular uses typescript as the language for writing components. How to find typescript version in Angular 13 project. Angular 13 is the latest version released in November 2021....

Multiple ways to get query parameters in javascript

January 1, 2022 ·  2 min read

In this tutorial, learn different ways to read query parameters in javascript. URLSearchParams query parameters are key and value pairs added to url to pass the simple parameters For example, if url is cloudhadoop.com/about?name=johh&dept=sales. query parameters are name=johh&dept=sales In javascript , these are retrieved using window.location.search //name=johh&dept=sales location.search // name=johh&dept=sales window and location are global javascript object and window.location and location returns cloudhadoop.com/about How to get query parameters for current URL In the latest browsers, we have URLSearchParams object used to get query parameters of a given URL....

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