29 Views
When you work in JavaScript then this keyword changes the context or scope based on how it is used. So here is some examples how to use this keywords in JavaScript. function func_1() { console.log(this); } // calling a function func_1(); // this pointing to window // as object method var ...
Sheetal Kumar
Dec 04, 2018
26 Views
When you use loop having a iteration variable like "i" and changing the value of "i" then all the closure access same variable and the variable value changed. Here you will face the problem that all the closure will take last value of "i". For eg. var funcs = []; for ...
Sheetal Kumar
Nov 30, 2018
353 Views
When you are working client side (Browser) then sometime you change the content of browser or view, and then you need to update the URL of browser so that when user refresh or reload page then same thing can be visible.  window.history have different functions to update or switch the states ...
Sheetal Kumar
Oct 15, 2018
207 Views
Patterns:- All languages have patterns. In javascript pattern are long-lasting and durable  or a collection a pattern that is used to solve the problem in software design .It includes function pattern, jquery pattern, design patterns, object creation pattern etc.... Some of the pattern in javscript ...
Anamika Gupta
May 22, 2018
232 Views
Class in javascript Classes are the function which is used to define expression and declarations. Basically  the Java script is a classless language, it supports the object.In the javascript class work in the same way like other language that's why classes are called syntactic sugar . class ...
Anamika Gupta
May 18, 2018
307 Views
Basic of DOM DOM stands for (document object model) is used as a structure representation of HTML.It is a platform to combine the program of dynamic sites so that you can access the data and their content.It gives the structure of your site and and new design to your document.It represent the document ...
Anamika Gupta
Apr 03, 2018
219 Views
Conditions and Comparision operator in javascript In javascript conditions and comparision operator are different from each other because of their functions actions and conditions such as. In javascript condition operator ate those operator who perform different role (action) according ...
Anamika Gupta
Mar 29, 2018
445 Views
Number Methods In javascript method and properties contain a primitive value and it treat primitive value as a object when it execute its method and properties. Basic maths calculation with numbers in javascript const num1=100; const num2=20; let val; //Basic math with numbers val=num1 ...
Anamika Gupta
Mar 25, 2018
308 Views
Javascript and HTML binding To insert javascript in your html page  which is very basic and easy javascript and their fundamentals First, you create a  HTML page index.html  in your IDE( i.e  webstrom, netbeans, Visual Studio etc..) . In  index.html page ...
Anamika Gupta
Mar 23, 2018
235 Views
Array are used to store multiple value in a single variable.It can hold multiple value in one time For example:Storing the list of brand in single list of item be like this: var brand1=”lancer”; var brand2=”puma”; var brand3=”lee cooper”; var brand4=”reebok”; In a ...
Anamika Gupta
Feb 05, 2018
175 Views
ASCII stands for American Standard Code for Information Interchange. This is a character encoding standerd for data and information exchange between two devices or periferals.  In Javascript you can get the key ASCII Value from event: var ascii = e.keyCode;   Following ...
Sheetal Kumar
Feb 02, 2018
463 Views
Latitude and Longitude are unit for geographical cordinates and you frequently need to pick geolocation for user profiles, outlets etc. Here we described the use of Google Geo Location API. To create map and map events first you need to register on google and take a geo location API Key. To get ...
Sheetal Kumar
Feb 02, 2018
443 Views
To type in Hindi in Text Box use following Java Script API. <script type="text/javascript" src="http://www.google.com/jsapi"></script> Write following script to to your page to initialise Textbox for the API.  <script type="text/javascript">   ...
Sheetal Kumar
Jan 30, 2018
Page 1 of 1 Pages       Total Records 13
  • First
  • Prev
  • 1
  • Next
  • Last