What is Typescript? Compile typescript code

In this tutorial, we learn what is typescript and how to install the same. Also, understand how to run and compile the typescript program on your machine. What is Typescript? Typescript has been designed and developed by Microsoft in the year 2012. It is an open-source language that builds on top of JavaScript you canIn this tutorial, we learn what is typescript and how to install the same. Also, understand how to run and compile the typescript program on your machine. What is Typescript? Typescript has been designed and developed by Microsoft in the year 2012. It is an open-source language that builds on top of JavaScript you can […]

Read More…

How to prevent browser to cache JavaScript and CSS file

Suppose your JavaScript and CSS files refer to your master page and you modify the piece of JavaScript code or CSS Style in these files the change are not reflected after that you debug the code and found your code changes are missing. To resolve this you do a hard refresh(ctrl+f5) but this only resolvesSuppose your JavaScript and CSS files refer to your master page and you modify the piece of JavaScript code or CSS Style in these files the change are not reflected after that you debug the code and found your code changes are missing. To resolve this you do a hard refresh(ctrl+f5) but this only resolves […]

Read More…

String.format in JavaScript

In this tutorial, I show you how to format string in JavaScript. There is no direct equivalent method like string.format in JavaScript similar to C# but the same can be achieved by creating the string prototype method. Suppose we have one string where {0} and {1} placeholders need to be replaced with some string literalsIn this tutorial, I show you how to format string in JavaScript. There is no direct equivalent method like string.format in JavaScript similar to C# but the same can be achieved by creating the string prototype method. Suppose we have one string where {0} and {1} placeholders need to be replaced with some string literals […]

Read More…

Capitalize first letter using JavaScript

In this tutorial, I show you how you can capitalize the first letter of the string. JavaScript provided several methods for string manipulation and there are different ways that can be used to capitalize the first letter of the string using JavaScript. Capitalize the first letter using javascript required a little bit of code butIn this tutorial, I show you how you can capitalize the first letter of the string. JavaScript provided several methods for string manipulation and there are different ways that can be used to capitalize the first letter of the string using JavaScript. Capitalize the first letter using javascript required a little bit of code but […]

Read More…

Compare location.href vs location.replace vs location.assign and window.open

During client-side development, you come across the situation where you have to redirect from one webpage to another webpage. Javascript provides several ways to redirect to a page and below properties/method are used to redirectDuring client-side development, you come across the situation where you have to redirect from one webpage to another webpage. Javascript provides several ways to redirect to a page and below properties/method are used to redirect […]

Read More…

SharePoint Search REST API with Example

In this tutorial, I show you how to fetch data from the SharePoint Search REST API with Example. We look at how to use different methods, parameters that search rest API support – SharePoint Search is very power full and enables users to find relevant data based on their search query. Search indexed the contentIn this tutorial, I show you how to fetch data from the SharePoint Search REST API with Example. We look at how to use different methods, parameters that search rest API support – SharePoint Search is very power full and enables users to find relevant data based on their search query. Search indexed the content […]

Read More…