Ayush Gupta has Published 530 Articles

What is Babel, and how will it help you write JavaScript?

Ayush Gupta

Ayush Gupta

Updated on 27-Nov-2019 09:53:30

362 Views

Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backward-compatible version of JavaScript in current and older browsers or environments. Babel's plugins allow you to use the new syntax, right now without waiting for browser support.The main reasons to use babel JS are −Syntax ... Read More

Why do I need Babel JS?

Ayush Gupta

Ayush Gupta

Updated on 27-Nov-2019 09:51:53

736 Views

Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backward-compatible version of JavaScript in current and older browsers or environments. Babel's plugins allow you to use the new syntax, right now without waiting for browser support.The main reasons to use babel JS are −Syntax ... Read More

Write the dependencies of backbone.js in javascript?

Ayush Gupta

Ayush Gupta

Updated on 27-Nov-2019 09:50:24

216 Views

The only hard dependency(without which backbone js won't work at all) is Underscore.js. Underscore is a JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects.There are other dependencies required as you proceed to use more advanced features of backbone.js. For example, Libraries ... Read More

What is the architecture of backbone.js in javascript?

Ayush Gupta

Ayush Gupta

Updated on 27-Nov-2019 09:48:50

183 Views

The BackboneJS gives a structure to the web applications that allows separating business logic and user interface logic.The architecture of BackboneJS contains the following modules -HTTP RequestThe HTTP client sends an HTTP request to a server in the form of a request message where web browsers, search engines, etc., acts ... Read More

What is the use of backbone.js in structuring javascript?

Ayush Gupta

Ayush Gupta

Updated on 27-Nov-2019 09:46:41

109 Views

Backbone is an MVC framework for the frontend. With Backbone, you represent data as Models, which can be created, validated, destroyed, and saved to the server. Whenever a UI action causes an attribute of a model to change, the model triggers a "change" event; all the Views that display the ... Read More

What is JSlint error "missing radix parameter" in JavaScript?

Ayush Gupta

Ayush Gupta

Updated on 27-Nov-2019 09:43:07

1K+ Views

The parseInt function available in JavaScript has the following signature −parseInt(string, radix);Where the parameters are the following −string − The value to parse. If this argument is not a string, then it is converted to one using the ToString method. Leading whitespace in this argument is ignored.radix − An integer ... Read More

What is the difference between `new Object()` and object literal notation in JavaScript?

Ayush Gupta

Ayush Gupta

Updated on 27-Nov-2019 09:41:34

628 Views

Both new Object() notation and Object literal({}) notations do the same thing. They initialize an object. However, the second notation can be a little different if you start adding properties to it.Examplelet a = {    name: 'Ayush' }This initialization is equivalent to −let a = new Object(); a.name = ... Read More

C++ program to find the Radius of the incircle of the triangle

Ayush Gupta

Ayush Gupta

Updated on 21-Nov-2019 12:57:23

247 Views

In this tutorial, we will be discussing a program to find the radius of the incircle of a given triangle.For this, we will be provided with the sides of a particular triangle and our task is to find the radius of the incircle in that triangle.The formula for finding the ... Read More

C++ program to find the quantity after mixture replacement

Ayush Gupta

Ayush Gupta

Updated on 21-Nov-2019 12:54:02

89 Views

In this tutorial, we will be discussing a program to find the quantity of milk left after mixture replacement.Let us suppose we have X litres of milk. From that, Y litres of milk is replaced with Y litres of water itself. This same procedure is done again and again Z ... Read More

Program to print the nodes at odd levels of a tree using C++

Ayush Gupta

Ayush Gupta

Updated on 01-Nov-2019 07:13:41

149 Views

In this tutorial, we will be discussing a program to print the nodes present at the odd levels of a given binary tree.In this program, the level for the root node is considered as 1 and simultaneously the alternative level is the next odd level.For example, let us say we ... Read More

Advertisements