Articles on Trending Technologies

Technical articles with clear explanations and examples

What is the difference between Bower and npm in JavaScript?

vanithasree
vanithasree
Updated on 15-Mar-2026 262 Views

npm and Bower are JavaScript package managers that handle dependencies differently. Understanding their differences helps choose the right tool for your project. npm (Node Package Manager) npm is primarily designed for Node.js modules and uses a nested dependency tree. It works for both server-side and front-end development, supporting tools like Grunt, Webpack, and CoffeeScript. npm allows multiple versions of the same package to coexist, preventing dependency conflicts through nested installation. Dependency Structure project root [node_modules] -> dependency P -> dependency Q [node_modules] -> dependency P (different version) ...

Read More

How to include JavaScript in HTML Documents?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 1K+ Views

In this tutorial, we will learn how to include JavaScript in HTML Documents. To include JavaScript in HTML Documents, use the tag. JavaScript can be implemented using JavaScript statements that are placed within the ... . You can place the tags, containing your JavaScript, anywhere within your web page, but it is normally recommended that you should keep it within the tags. We will discuss the following three approaches to include JavaScript in HTML documents − Embedding code (within head or body) Inline Code (inside any ...

Read More

What is the relationship between JavaScript, CoffeeScript, TypeScript, ES5, and ES6?

radhakrishna
radhakrishna
Updated on 15-Mar-2026 227 Views

JavaScript serves as the foundation for web development, with several related languages and versions that enhance or extend its capabilities. Understanding their relationships helps developers choose the right tools for their projects. JavaScript (The Foundation) JavaScript is the core programming language that runs in browsers and Node.js environments. All other languages mentioned either extend JavaScript or compile to it. // Basic JavaScript function greet(name) { return "Hello, " + name + "!"; } console.log(greet("World")); Hello, World! ES5 vs ES6 (JavaScript Versions) ES5 (ECMAScript 5) and ...

Read More

What is the difference between JavaScript, JScript & ECMAScript?

Giri Raju
Giri Raju
Updated on 15-Mar-2026 1K+ Views

JavaScript, JScript, and ECMAScript are closely related but serve different purposes in web development. Understanding their relationships helps clarify the JavaScript ecosystem. What is ECMAScript? ECMAScript is the official standard specification that defines the syntax, types, statements, keywords, and objects that scripting languages should implement. ECMA stands for European Computer Manufacturer's Association (now called Ecma International). ECMAScript serves as the blueprint that various implementations follow: // ECMAScript defines standard features like: let variable = "Hello World"; const PI = 3.14159; function greet(name) { return `Hello, ${name}!`; } What is ...

Read More

How do I get the current date in JavaScript?

usharani
usharani
Updated on 15-Mar-2026 1K+ Views

To get the current date in JavaScript, you can use the Date object along with various methods to extract different parts of the date. Getting the Current Date Object The new Date() constructor creates a Date object representing the current date and time: var currentDate = new Date(); console.log(currentDate); 2024-01-15T10:30:45.123Z Getting the Day of the Month The getDate() method returns the day of the month (1-31): var date = new Date(); var dayOfMonth = date.getDate(); console.log("Day of month: " + dayOfMonth); Day of month: 15 ...

Read More

Where is JavaScript Today?

varun
varun
Updated on 15-Mar-2026 419 Views

JavaScript has evolved significantly since its creation in 1995. Today, it stands as one of the most popular and versatile programming languages in the world, powering everything from simple web interactions to complex server applications and mobile apps. Current JavaScript Standard The latest JavaScript standard is ECMAScript 2023 (ES14), released in June 2023. However, ECMAScript 2017 (ES8) remains widely supported and includes major features like async/await, Object.entries(), and string padding methods. The ECMA-262 Specification continues to define the core JavaScript language standards. JavaScript's Modern Role JavaScript is no longer limited to browser-based interactions. It has expanded ...

Read More

How to check whether a string contains a substring in JavaScript?

Abhinaya
Abhinaya
Updated on 15-Mar-2026 1K+ Views

JavaScript provides us with different methods to check whether a string contains a substring or not. In this article, we use the following three methods for this purpose: String search() method String indexOf() method String includes() method Let's explore in detail each method. Using String search() Method The string search() method can be used to search a text (using regular expression) in a string. It matches the string against a regular expression and returns the index (position) of the first match. It returns -1 if no match is found. It's case-sensitive. The ...

Read More

What are some JavaScript Development Tools?

Alshifa Hasnain
Alshifa Hasnain
Updated on 15-Mar-2026 673 Views

One of the major strengths of JavaScript is that it does not require any expensive development tools. You can start with a simple text editor such as Notepad. Since it is an interpreted language inside the context of a web browser, you don't even need to buy a compiler. To make our lives simpler, various vendors have come up with very nice JavaScript editing tools. Some of them are listed here − Code Editors and IDEs A quality code editor is the backbone of any JavaScript development process. Visual Studio Code ...

Read More

What are the advantages of JavaScript?

Alshifa Hasnain
Alshifa Hasnain
Updated on 15-Mar-2026 5K+ Views

JavaScript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementation allows a client-side script to interact with a user and to make dynamic pages. It is an interpreted programming language with object-oriented capabilities. Client-Side (Browser) DOM Manipulation User Interaction Form Validation Dynamic Content ...

Read More

What is core JavaScript language?

Giri Raju
Giri Raju
Updated on 15-Mar-2026 3K+ Views

Core JavaScript is the foundation of the JavaScript language that provides the essential programming constructs and features. It represents the standard language specification that works consistently across different environments, whether in browsers, servers, or other JavaScript runtime environments. What is Core JavaScript? Core JavaScript includes the fundamental language features such as variables, data types, operators, control structures, functions, and objects. These core elements remain the same regardless of where JavaScript is executed. // Core JavaScript features work everywhere let name = "JavaScript"; let version ...

Read More
Showing 1–10 of 61,300 articles
« Prev 1 2 3 4 5 6130 Next »
Advertisements