The query string is made up of query parameters and used to send data to the server. This part of the URL is optional. It needs to be constructed by the developer. This can be done using a native method called encodeURIComponent.The encodeURIComponent() function encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the characterUsing the new ES6 format, objects can be query string encoded in the following way −Examplelet obj = { name: 'John', age: 25, city: 'Chicago' ... Read More
lodash and underscore are both utility libraries that make JavaScript easier by providing utils that make working with arrays, numbers, objects, strings, etc. much easier. These libraries are great for −Iterating arrays, objects, & stringsManipulating & testing valuesCreating composite functionsThey are both functional libraries. Lo-Dash is a fork of Underscore, and still follows Underscore’s API enough to allow it to serve as a drop-in replacement. But under the hood, it’s been completely rewritten, and it’s also added a number of features and functions that Underscore does not provide.Lo-Dash was created to provide more consistent cross-environment iteration support for arrays, strings, ... Read More
Backbone is an MV* framework while jQuery is a DOM toolkit.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 model's state can be notified of the change so that they are able to respond accordingly, re-rendering themselves with the new information.While jQuery is a solid API for querying the DOM with support for event handling, deferred objects, and animations. It is best suited for things like querying ... Read More
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 for RESTful persistence(Backbone.sync)History support via Backbone.RouterDOM manipulation with Backbone.View or Jquery
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 between 2 and 36 that represents the radix (the base in mathematical numeral systems) of the string.If the radix parameter is omitted, JavaScript assumes the following −If the string begins with "0x", the radix is 16 (hexadecimal)If the string begins with "0", the radix is 8 (octal). This feature is ... Read More
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 = 'Ayush'orlet a = {} a.name = 'Ayush'
Use Cases and Test Cases are two important terms in context of Software Testing. A use case tells how a System will behave or perform a certain task provided the given conditions and a test case contains the actual test data, set of instructions to system and expected result of the interaction with system.Following are the important difference between Use Case and Test Case.Sr. No.KeyUse CaseTest Case1ObjectiveThe objective of Use case is to ascertain a certain output after the set of operations.The objective of test case is to ensure that system is working fine for each given instruction and yields ... Read More
SQLSQL, Structured Query Language is a non-procedural language and is used by database engines to interpret SQL queries to create/modify/access the database elements.T-SQLT-SQL, Transact-SQL, is a procedural extension to SQL, used by SQL Server. It is similar to PL/SQL of Oracle.Following are the important difference between SQL and T-SQL.Sr. No.KeySQLT-SQL1TypeSQL is non-procedural by nature.T-SQL is procedural by natue.2MethodsSQL provides data manipulation and controlling functions.With T-SQL, we can write own procedures, functions with local variables.3ProprietarySQL is open to use and is common across RDBMS softwares.T-SQL is specific to SQL Server and is proprietary.4Query orderMultiple querires are submitted one by one.Using T-SQL, ... Read More
Organic SearchOrganic Search results are unpaid section of a search result page which appears on search engine page based on their relevance to keyword searched. A website submits its entry to a search engine like google and then based on the contents of the website, search engine ranks the pages based on relevance and quality of content. Organic Search method takes time and lot of efforts to get a high rank in a search engine page.Paid SearchPaid Search results are paid advertisements shown close to organic search results. Paid search ads are shown on highest priority and are shown on ... Read More
Centralized Version ControlCentralized Version Control is a version control system using server/client model and server contains all the history of source code.Distributed Version ControlDistributed Version Control is a version control where each client can have same copy of source code as server has and both server and client maintain history of source code.Following are the important difference between Centralized Version Control and Distributed Version Control.Sr. No.KeyCentralized Version ControlDistributed Version Control1WorkingIn CVS, a client need to get local copy of source from server, do the changes and commit those changes to centeral source on server.In DVS, each client can have a ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP