Using JavaScript console better

Print Friendly, PDF & Email

The console object provides access to the debugging console (e.g., the Web console in Firefox). The specifics of how it works vary from browser to browser or server runtimes (Node.js, for example), but there…

Popular shorthand techniques in JavaScript

Print Friendly, PDF & Email

The shorthand techniques can help you to write optimized code and let you achieve your goal with less coding. Let’s discuss some of the shorthand tips and tricks of JavaScript…

How to show a loading spinner using jQuery

Print Friendly, PDF & Email

Have you ever asked yourself how to show a spinner on a page while we have to wait for the server response? In most modern web-based applications, showing an indicator…

How to Validate Min and Max Length of Input Field using jQuery

Print Friendly, PDF & Email

Using minlength and maxlength attributes of HTML5, you can manage the number of characters allowed to be entered into the input fields. But if you want to show a custom…

Fastest way to get the first n elements of a List or an Array

Print Friendly, PDF & Email

Which is the fastest way to get the first n elements of a List or an Array? Let’s give a context where we want to extract some first elements from…

How to console.log in JSX

Print Friendly, PDF & Email

https://medium.com/javascript-in-plain-english/can-you-console-log-in-jsx-732f2ad46fe1

How to change font size for text shown on arcs in D3Js

Print Friendly, PDF & Email

Have you ever asked how to change the size of the text displayed on elements of a D3JS plot so far? After a bit touch search and discovery, I believe…

Checking existence of an element in an array with JavaScript

Print Friendly, PDF & Email

JavaScript is a loosely typed or a dynamic language. Variables in JavaScript are not directly associated with any particular value type, and any variable can be assigned (and reassigned) values…

Understanding data type of dictionary in JavaScript

Print Friendly, PDF & Email

Dictionary is among the commonly used data structures in modern programming because of its benefits so that there has not been any frankly acceptable alternative. Therefore, in this post I…

How to build and render data in JSON format with Grails

Print Friendly, PDF & Email

Nowadays, an awful lot of web based applications are using JSON as a principal data to load and render information rapidly. While some applications store data into persistence volume as…