Javascript 51
what is JSON ?
JSON stands for JavaScript Object Notation. A popular Data Format for Client-Server(Web 2.0) Ajax Communication. The Data is represented similar to anonymous object in JavaScript. A anonymous object is represented in curly braces "{}". The data is arranged in key:value pair with a pair of curly braces. JSON data can be {},[],[{},{}...],{key:[],key:[]....} etc. formats. Example […]
What is Document Fragment?
Document Fragment is a lightweight DOM Element. DocumentFragment object can be created using createDocumentFragment() method. This object is generally used for DOM insertion of other elements. Example JSFiddle,
What is NaN in javascript?
"NaN" is a javascript sentinel object of type Number.The most important remember here is if a varible value is not adequately represented as Number results in NaN.In short, "numeric results that cannot be adequately represented" is NaN. For Exmaple, 0 divided by 0 can not be represented in number so it is NaN.But it's result […]
What is the purpose of atob and btoa method?
“Window” object provides two methods for handling String and Base 64 encoded string. window.btoa() This method is for converting a normal string to Bas64 encodes string. b(Binary string) to a(Ascii base64 string). Example, var bas64string = window.btoa('Sandeep');alert(bas64string);//output U2FuZGVlcA== window.atob() This method is for converting Base64 Ascii string to normal string. a(Ascii base64 string) to b(Binary […]