javascript Archives

Record Audio on Web through Javascript

Author - Webner
|
0 Comments
|

Introduction

Many browsers now have the power to access video and audio input from the user. However, counting on the browser, it’d be a full dynamic and inline experience, or it might be delegated to a different app on the user’s device. Here we will learn Read more…

RxJS (Reactive Extensions for JavaScript)

Author - Webner
|
0 Comments
|

Introduction to RxJS

RxJS is a popular library among web developers. It provides some features like functional and reactive programming patterns that support working with events and streams. Rxjs provides the functionality to write asynchronous code. The current stable version is Rxjs v6.

RxJS 6 has many advantages Read more…

Why not use JSON.stringify in JavaScript?

Author - Webner
|
0 Comments
|

Why JSON.stringify Shouldn’t Be Used To Compare Objects In JavaScript?

In javascript, equality operator == or === can be used to compare numerics and strings. But when we will compare objects using these operators, then it will not work as expected because objects use references. So, equality operators Read more…

JavaScript: Return Object Literal From Arrow Function

Author - Webner
|
0 Comments
|

Arrow function

Arrow function was introduced in ES6, which provides a better and shorter way to write functions in JavaScript. Its another advantage is that it does not bind its own “this”. We can also say that the context inside arrow functions is lexically or statically set.
Syntax Read more…

Adding days to date type in Javascript – Another solution

Author - Webner
|
0 Comments
|

I have already written a blog on this topic. Please refer to the following link for detail: Click This Link

Introduction

I will show another solution to add a number of days to a date string. The solution provided in the above link works well and gives an Read more…

JS Errors On Android Browser

Author - Babita Kapoor
|
0 Comments
|

How to view JS errors when accessing a webpage on Android mobile?

Steps to view JS errors:

Open the Developer Options setting on your Android Device. If you are not able to see the developer option then you need to enable it.

a. Go to your Read more…

Custom Javascript in Moodle/Totara, Javascript & AMD Modules

Author - Pawandeep Kaur
|
0 Comments
|

How can we add custom Javascript in Moodle/Totara, Javascript & AMD modules?

A Javascript module is a collection of Javascript code. It enhances the reusability of this code. As a result, it is called/used from alternative javascript files.

These modules are written by using the AMD(Asynchronous Read more…

Various Array helper methods in Javascript

Author - Parminder Kaur
|
1 Comment
|

Explanation of various Array helper methods in Javascript with example

The various methods I am going to discuss below are a part of functional programming in Javascript. In functional programming output of the method depends on the arguments passed to the method. In Javascript, we have Read more…

Download byte array as a file in ASP .NET MVC and Javascript

Author - Harleen Kaur
|
0 Comments
|

How to download byte array as a file in ASP .NET MVC and Javascript?

Here is a simple approach to invoke file download operation in the browser for bytes array available on the server:

I am receiving the file in the format of bytes array from Read more…

Selenium Webdriver with JavaScript (JavaScriptExecutor)

Author - Manpreet Singh
|
0 Comments
|

How to Use Selenium Webdriver with JavaScript?

Selenium is an open source automation testing tool. It is used to test the web application. Selenium supports multiple languages to create an automation script such as Java, Python, PHP, C#, Ruby.

In case we want to test with Read more…

Nodejs callback with example

Author - Tanuj Sharma
|
0 Comments
|

Nodejs callback

A callback is a function that can be called on the completion of a given task to prevent blocking. As a result of it other code will run without waiting for a task to complete. This feature makes node.js highly scalable as it Read more…