Home » JavaScript (page 5)

JavaScript

JavaScript Get URL Parameter Example

Greetings readers, in this tutorial, we will show how to use the JavaScript scripting language to get the URL parameters. 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. ...

Read More »

Angular – Components within Components

It’s good to be back blogging after a long hiatus. :-) With the earlier versions of Angular creating nested components was not possible but with Angular6+ you can create nested components within components. Here’s how you can create them using the angular-cli. You can also perform the steps manually by creating the needed files one by one under a hierarchical ...

Read More »

Await in turn by mistake

I really enjoy working with the new async functions but it is really easy to set up a situation where code that could be running in parallel is force to run in sequence. Consider this simple invocation of a javascript function that takes two values returned from other async functions: const combination = await combine(await value(1), await value(2)); The problem ...

Read More »

JavaScript Fetch Example

Greetings readers, in this tutorial, we will show the JavaScript Fetch API. 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: Declaring variables Maintaining ...

Read More »

JavaScript Events Tutorial

Greetings readers, in this tutorial, we will show how to use the JavaScript Events. 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: Declaring ...

Read More »

JavaScript Enums Example

Greetings readers, in this tutorial, we will show how to use the JavaScript enumerations. 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: Declaring ...

Read More »

JavaScript Date toString() Example

Greetings readers, in this tutorial, we will show how to use the JavaScript scripting language and the Date toString() method. 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. ...

Read More »

JavaScript bind() Example

Greetings readers, in this tutorial we will show how to use the JavaScript bind() method. 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 »

Beware the performance cost of async_hooks (Node 8)

I was excited about async_hooks having finally landed in Node.js 8, as it would enable me to share important troubleshooting information with all code involved in handling a particular request. However it turned out to have terrible impact of our CPU usage (YMMV):                 This was quite extreme and is likely related to ...

Read More »