 ## Detect Whether it’s Internet Explorer using JavaScript

I decided to share a useful one-row snippet for web developers, which can save time and complexity using JavaScript that checks whether the browser that runs the code is MSIE (Internet Explorer) and determine its version. ## Convert Base 10 to Base 64 and vise versa using JavaScript

This is the way to convert base 10 (a decimal number) into a base 64 string and base 64 into a base 10, while the order of that base is as following: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_- Base 10 to Base 64 Base 64 to Base 10 Live Test Base 10: Base 64: Good luck! ## An Efficient Way to Create GUID/UUID in JavaScript

I have cerated this GUID/UUID generator, which is short, simple and efficient. This post includes explanations of the algorithm below. The function is as simple as this: To test the performance, you can run this code: I’m sure most of you will understand what I did there, but maybe there is at least one person that will need an explanation: The algorithm: The Math.random() function returns a decimal number between 0 and 1 with 16 digits after the decimal fraction point (for example 0.4363923368509859). Then we take this number and convert it to a string with base 16 (from the example above we’ll get 0.6fb7687f).Math.random().toString(16). Then we cut off the 0. prefix (0.6fb7687f => 6fb7687f) and get a string with eight hexadecimal characters long.(Math.random().toString(16).substr(2,8). Sometimes the Math.random() function will return shorter number (for example 0.4363), due to zeros at the end (from the example above, actually the number is 0.4363000000000000).…

3/3