REST API Architectural Constraints
REST stands for REpresentational State Transfer and API stands for Application Program Interface. REST is a software architectural style that defines the set of rules to be used for creating web services. Web services which follow the REST architectural style are known as RESTful web services. It allows requesting systems to access and manipulate web resources by using a uniform and predefined set of rules. Interaction in REST based systems happen through Internet’s Hypertext Transfer Protocol (HTTP)....
read more
JavaScript Array find() Method
The find() method in JavaScript returns the first element that satisfies a provided test function. It iterates through each array element, ignoring empty slots, and returns undefined if no match is found. The original array remains unchanged....
read more
How to send an email from JavaScript ?
In this article, we will learn how to send mail using Simple Mail Transfer Protocol which is a free JavaScript library. It is basically used to send emails, so it only works for outgoing emails. To be able to send emails, you need to provide the correct SMTP server when you set up your email client. Most internet systems use SMTP as a method to transfer mail from one user to another. It is a push protocol. In order to use SMTP, you need to configure your Gmail. You need to change two settings of your Gmail account from which you are sending the mail i.e....
read more
How to fetch data from JSON file and display in HTML table using jQuery ?
The task is to fetch data from the given JSON file and convert data into an HTML table....
read more
TypeScript | Array map() Method
The Array.map() is an inbuilt TypeScript function that is used to create a new array with the results of calling a provided function on every element in this array....
read more
How to change the text of a label using JavaScript ?
JavaScript provides two built-in properties that allow us to change the text of any element in an HTML document. In this article, we will explore how to use these properties to change the text of a label using JavaScript....
read more
How to remove an HTML element using JavaScript ?
In this article, we are going to learn how can we remove an HTML element using JavaScript. we will be given an HTML element, the task is to remove the HTML element from the document using JavaScript....
read more
Compare two dates using JavaScript
Comparing two dates in JavaScript involves converting them to Date objects and using comparison operators or methods like getTime(). We compare dates to determine chronological order, check event timings, validate date ranges, or manage scheduling in applications....
read more
JavaScript Spread Operator
The Spread operator is a key feature in JavaScript that enables an iterable to expand wherever zero or more arguments are required. Its primary use case is with arrays, especially when expecting multiple values. This operator provides the convenience of easily extracting a list of parameters from an array, making our code more versatile and readable....
read more
JavaScript Date toISOString() Method
The date.toISOString() method is used to convert the given data object’s contents into a string in ISO format (ISO 8601) i.e, in the form of (YYYY-MM-DDTHH:mm:ss.sssZ or ±YYYYYY-MM-DDTHH:mm:ss.sssZ). The date object is created using the date() constructor....
read more
How to parse float with two decimal places in JavaScript ?
JavaScript is a client-side scripting language that’s high-level, dynamically typed, and interpreted. It comes with a built-in method called parseFloat() which is used to convert a string into a floating-point number....
read more
How to access variables from another file using JavaScript ?
In JavaScript, variables can be accessed from another file using the <script> tags or the import or export statement. The script tag is mainly used when we want to access a variable of a JavaScript file in an HTML file. This works well for client-side scripting as well as for server-side scripting. The import or export statement however cannot be used for client-side scripting. The import or export statement works in Node.js during server-side scripting....
read more