Lodash _.orderBy() Method
Lodash _.orderBy() method is similar to the _.sortBy() method except that it allows the sort orders of the iterates to sort by. If orders are unspecified, then all values are sorted in ascending order otherwise order of corresponding values specifies an order of “desc” for descending or “asc” for ascending sort....
read more
Scroll to the top of the page using JavaScript/jQuery
Have you ever find yourself wishing you could skip all that scrolling to get back to the top of a webpage? Well, good news! With JavaScript or jQuery, you can do just that. This article will walk you through the process. This trick will streamline your browsing experience. Say goodbye to endless scrolling and hello to instant page-top access!...
read more
Print the content of a div element using JavaScript
To print the content of div in JavaScript, first store the content of div in a JavaScript variable and then the print button is clicked. The contents of the HTML div element to be extracted. Then a JavaScript popup window is created and the extracted contents of the HTML div elements are written to the popup window and finally the window is printed using the JavaScript Window Print command....
read more
Difference between Java and JavaScript
Java is a statically typed, object-oriented programming language for building platform-independent applications. JavaScript is a dynamically typed scripting language primarily used for interactive web development. Despite similar names, they serve different purposes and have distinct syntax, runtime environments, and use cases....
read more
How to create a REST API using Java Spring Boot
Representational state transfer (REST) is a software architectural style that defines a set of constraints to be used for creating Web services. Web services that conform to the REST architectural style, called RESTful Web services, provide interoperability between computer systems on the Internet. RESTful Web services allow the requesting systems to access and manipulate textual representations of Web resources by using a uniform and predefined set of stateless operations. Other kinds of Web services, such as SOAP Web services, expose their own arbitrary sets of operations....
read more
How to get the ID of the clicked button using JavaScript/jQuery ?
Sometimes a developer has to know the ID of the button that the user has clicked to decide further course of action on a webpage....
read more
JavaScript adding a class name to the element
The class name attribute can be used by CSS and JavaScript to perform certain tasks for elements with the specified class name. Adding the class name by using JavaScript can be done in many ways....
read more
Implementation of LinkedList in Javascript
In this article, we will be implementing the LinkedList data structure in Javascript. LinkedList is the dynamic data structure, as we can add or remove elements at ease, and it can even grow as needed. Just like arrays, linked lists store elements sequentially, but don’t store the elements contiguously like an array....
read more
How to convert a number into array in JavaScript ?
In this article, we have been given a number and the task is to convert the given number into an array using JavaScript....
read more
7 JavaScript Concepts That Every Web Developer Should Know
JavaScript is Everywhere. Millions of web pages are built on JavaScript and it’s not going anywhere at least for now. On one side HTML and CSS give styling to the web pages but on the other side, it’s the magic of JavaScript that makes your web page alive. Today this language is not just limited to your web browser. You can also use it for server-side applications. Isn’t it cool to use a single language for both client-side and server-side applications? A single language fulfills both of the purposes and this is the main reason TONs of job postings are there for JavaScript developers in the tech industry....
read more
How to disable scrolling temporarily using JavaScript ?
We know as long as the height of the web page gets increased it shows the scroll and we are going to discuss how can we disable that scrolling behavior temporarily using JavaScript....
read more
Introduction to Spring Boot
Spring is widely used for creating scalable applications. For web applications Spring provides Spring MVC which is a widely used module of spring which is used to create scalable web applications. But main...
read more