Home » JavaScript (page 3)

JavaScript

Case-sensitive import statements in TypeScript

I ran into a tricky TypeScript build issue with an Angular app that would build successfully on a Windows 10 machine but failed to build on a Linux machine with a “Cannot find module” error. The cause of the problem ended up boiling down to a single case-sensitive character, “X” instead of “x”. When I first encountered the error, I ...

Read More »

React Hooks

On the Roadmap for React there was a widely discussed feature called React Hooks. As of yesterday, Hooks are available in stable release v16.8. Personally I’m rather excited for this to become a part of React. I’ll try to explain why I’m so excited and point you to some great resources to get started yourself. What are Hooks? With the ...

Read More »

JavaScript Timing Events Example

Greetings readers, in this tutorial, we will explore the Timing Events in the javascript language. 1. Introduction JavaScript is an object-oriented programming language that allows the client-side scripting to interact with a user and deliver the dynamic pages. Most web browsers including Google Chrome, Mozilla Firefox, Safari, Internet Explorer, Microsoft Edge, Opera, etc. support it. The JavaScript scripting language includes: ...

Read More »

JavaScript Validator Example

Greetings readers, in this tutorial, we will explore the form validations in the javascript language. 1. Introduction JavaScript is an object-oriented programming language that allows the client-side scripting to interact with a user and deliver the dynamic pages. Most web browsers including Google Chrome, Mozilla Firefox, Safari, Internet Explorer, Microsoft Edge, Opera, etc. support it. The JavaScript scripting language includes: ...

Read More »

JavaScript round() Example

Greetings readers, in this tutorial, we will explore the round() method in the javascript language. 1. Introduction JavaScript is an object-oriented programming language that allows the client-side scripting to interact with a user and deliver the dynamic pages. Most web browsers including Google Chrome, Mozilla Firefox, Safari, Internet Explorer, Microsoft Edge, Opera, etc. support it. The JavaScript scripting language includes: ...

Read More »

JavaScript Quicksort Example

Greetings readers, in this tutorial, we will sort the elements using a quicksort algorithm in the javascript language. 1. Introduction JavaScript is an object-oriented programming language that allows the client-side scripting to interact with a user and deliver the dynamic pages. Most web browsers including Google Chrome, Mozilla Firefox, Safari, Internet Explorer, Microsoft Edge, Opera, etc. support it. The JavaScript ...

Read More »

JavaScript Number toString() Example

Greetings readers, in this tutorial, we will understand the number toString() method in the JavaScript language. 1. Introduction JavaScript is an object-oriented programming language that allows the client-side scripting to interact with a user and deliver the dynamic pages. Most web browsers including Google Chrome, Mozilla Firefox, Safari, Internet Explorer, Microsoft Edge, Opera, etc. support it. The JavaScript scripting language ...

Read More »

AngularJS Scope

1. Overview In this post, we are reviewing scope in AngularJS. It is passed as an argument when we make a controller: <script> var myApp = angular.module('myApp', []); myApp.controller('myController', function($scope) { $scope.name = "Red Dead Redemption"; }); </script> Scope is actually an object that refers to the model in an application structure, such as Model View Controller (MVC) . It ...

Read More »

JavaScript String toUpperCase() Example

Greetings readers, in this tutorial, we will understand the string toUpperCase() method in the JavaScript language. 1. Introduction JavaScript is an object-oriented programming language that allows the client-side scripting to interact with a user and deliver the dynamic pages. Most web browsers including Google Chrome, Mozilla Firefox, Safari, Internet Explorer, Microsoft Edge, Opera, etc. support it. The JavaScript scripting language ...

Read More »