Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Front End Technology Articles
Page 606 of 652
Object - Oriented Terms Supported by TypeScript
Object-oriented programming (OOP) is a popular programming paradigm that has been widely adopted in the software development industry. OOP is based on the concept of objects, which are instances of classes that encapsulate data and behaviour. TypeScript, a statically typed superset of JavaScript, is designed to support the development of large-scale applications and is also an object-oriented programming language. In this article, we will explore the object-oriented terms supported by TypeScript. Below we discuss various object-oriented terms supported by TypeScript. Class In TypeScript, a class is a blueprint for creating objects that define a set of properties and methods that ...
Read MoreHow is Declaration Merging done in TypeScript?
Introduction TypeScript offers powerful features that enhance JavaScript development. One such feature is declaration merging, which allows developers to combine multiple declarations of the same entity into a single definition. This tutorial will introduce you to the concept of declaration merging in TypeScript and provide examples to help you understand its practical implementation. Declaration Merging Basics Declaration merging in TypeScript enables the compiler to merge multiple declarations for the same entity, such as interfaces, functions, classes, or enums. By merging declarations, you can extend existing types and add new properties, methods, or functionality. Let's explore the scenarios where declaration merging ...
Read MoreHow to compile few typescript files to single output js-file?
TypeScript is a strongly typed superset of JavaScript that compiles to plain JavaScript. TypeScript adds static type-checking, classes, and interfaces to the language, making writing and maintaining large-scale applications easier. TypeScript files are compiled into JavaScript files that can be run in any browser or server that supports JavaScript. This article will look at how to compile multiple TypeScript files into a single output js-file. We will start by looking at how to use the TypeScript compiler to compile multiple TypeScript files and then see how to use Webpack to bundle multiple TypeScript files into a single JavaScript file. Compiling ...
Read MoreCreating a 3D cube using canvas in HTML5
We can create a 3D cube using the element and JavaScript in HTML5. The following document defines a canvas element with a width and height of 400 pixels, and uses JavaScript to get the canvas context to draw on the canvas. The cube is drawn using three separate faces: the front face, the top face, and the right face. This element is helpful in rendering 2D and 3D graphics in web browsers. Another alternate method to create a 3D cube is by using CSS 3D transitions, which allows us to create and animate the 3D cube, and WebGL which ...
Read MoreHow to Count Array Items in Angular JS?
A well−liked JavaScript framework for creating dynamic web apps is AngularJS. It offers a variety of helpful array−related tools, such as ways to measure the number of items in an array. In this article, we'll look into using AngularJS to count the number of items in an array. Method 1: Using the length property Using the built−in length property is the quickest and most popular method to count the number of items in an array in AngularJS. The length property gives the array's total amount of items. Algorithm Start Define an array 'myArray' and assign it to a ...
Read MoreHow to call api using typescript?
In this tutorial, we will learn about calling APIs using TypeScript. TypeScript is a statically-typed superset of JavaScript that adds type checking to the language. It provides enhanced tooling and helps catch errors during development. When working with APIs, we often need to make HTTP requests to send data and retrieve information. TypeScript allows us to write clean and organized code while interacting with APIs, making it easier to handle responses and work with the returned data. Throughout this tutorial, we will explore different methods and libraries available in TypeScript for making API calls. We will focus on using the ...
Read MoreHow to Monitor Node.js Applications Using PM2 Web Dashboard?
In today's fast-paced digital landscape, monitoring and optimizing the performance of Node.js applications is essential for delivering a seamless user experience. One popular tool that simplifies the process of managing and monitoring Node.js applications is PM2 (Process Manager 2). PM2 provides a powerful and user-friendly web dashboard that allows you to monitor and control your Node.js applications with ease. In this blog post, we will explore how to leverage the PM2 Web Dashboard to monitor the performance of your Node.js applications effectively. By monitoring your Node.js applications using PM2 Web Dashboard, you gain valuable insights into critical metrics such as ...
Read MoreHow to Encode/Decode URL using AngularJS ?
Handling URLs, which are used to move between various web pages and parts, is a fundamental component of web development. Spaces, question marks, and ampersands, among other special characters, can cause problems in URLs when transmitted over the internet. For instance, certain web servers may behave unexpectedly if a URL contains a space, supposing it to be a separate command or argument. AngularJS is a popular JavaScript framework used for building single−page applications. It provides several built−in methods for URL encoding and decoding, making it easy for developers to handle URLs in their applications. We will explore different methods ...
Read MoreHow to Enable/Disable Buttons using jQuery?
In addition to event handling, CSS animation, and Ajax, jQuery is a lightweight JavaScript framework intended to make it easier to traverse and manipulate the HTML DOM tree. It is renowned for following the "write less, do more" adage. Developers use a variety of tools and features with jQuery to alter HTML files, handle AJAX calls, manage events, and create animations. We will use the prop() function and the attr() function to enable or disable the button in JQuery. Approach −1 : Enable the button when a condition is fulfilled In this example, we will see how to enable the ...
Read MoreHow to Enable a jQuery UI Menu ?
Jquery is a fast and simple Javascript library which is used to make a client−side through HTML, It simplifies some of the Javascript functions like, DOM Manipulation, traversal, Event Handling and AJAX calls. This also has Cross−Browser compatibility. What is a jQuery UI menu? jQuery UI menu is Component built on the core of jQuery UI which is used to create drop−down menus and other navigation menu options. These menus can be accessed by mouse pointer as well as keyboard clicks. This also allows the developers to create menus and apply customs styles and themes. These menus ...
Read More