javascript tag

JavaScript (/ˈdʒɑːvəskrɪpt/), often abbreviated JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS. As of 2022, 98% of websites use JavaScript on the client side for web page behavior, often incorporating third-party libraries. All major web browsers have a dedicated JavaScript engine to execute the code on users' devices.

JavaScript is a high-level, often just-in-time compiled language that conforms to the ECMAScript standard. It has dynamic typing, prototype-based object-orientation, and first-class functions. It is multi-paradigm, supporting event-driven, functional, and imperative programming styles. It has application programming interfaces (APIs) for working with text, dates, regular expressions, standard data structures, and the Document Object Model (DOM).

The ECMAScript standard does not include any input/output (I/O), such as networking, storage, or graphics facilities. In practice, the web browser or other runtime system provides JavaScript APIs for I/O.

JavaScript engines were originally used only in web browsers, but are now core components of some servers and a variety of applications. Two of the most popular runtime systems for this usage are Node.js and Deno.

Although Java and JavaScript are similar in name, syntax, and respective standard libraries, the two languages are distinct and differ greatly in design.

Reference: WIKIPEDIA

1427 questions


1 answers
23 views
0
What does "!--" do in JavaScript?

var walk = function(dir, done) { var results = []; fs.readdir(dir, function(err, list) { if (err) return done(err); var pending = list.length; if (!pending) return done(null, results); list.for...

2 years ago

1 answers
20 views
0
To import arbitrary elements from an array

var myArray = ['January', 'February', 'March'];I want to bring any element randomly when I have an array like this, what should I do?

2 years ago

1 answers
45 views
0
How do I print elements of an array separated by commas in JavaScript?

I want to print elements of the array separated by commas in JavaScriptHow shall I do it?

2 years ago

1 answers
112 views
0
When erasing elements of an array from JavaScript

When you erase elements of an array in JavaScript, you use the delete operator or the array's method, splice.What's the difference between these two?myArray = ['a', 'b', 'c', 'd'];//delete myArray[1];...

2 years ago

2 answers
35 views
0
How do I replace open characters with
tags in a string?

I want to change all the open characters in the string to br tag. For example, This is man. Man like dog. Man like to drink. Man is the king.I don't know how to use these strings This is man<br ...

2 years ago

1 answers
39 views
0
Preloading images from jquery

I'm looking for the fastest and easiest way to pre-load images from JavaScript. I don't know if this is important, but I'm using jquery.I found the following source on the Internet. function complexLo...

2 years ago

1 answers
138 views
0
To extract a random number between two numbers in JavaScript

For example, random (1,6); I want to take any number between 1, 2, 3, 4, 5, 6 Is it possible with JavaScript?

2 years ago

1 answers
108 views
0
How to write JavaScript to clear a space in a string

How do I clear a space in a string?Input : '/var/www/site/Brand new document.docx'Output : '/var/www/site/Brandnewdocument.docx'I want this kind of result.

2 years ago

1 answers
33 views
0
How do I detect an ESC key pressed in jQuery?

Does the Esc key differ from browser to browser? It's 27 in Explo or Chrome and 0 in Firefox$('body').keypress(function(e){ alert(e.which); if(e.which == 27){ // // Close my modal window }});

2 years ago

1 answers
110 views
0
Simple way to populate an array with zero in JavaScript

I want to fill the array with zero in JavaScript, what should I do?

2 years ago
« - 100 - »

© 2024 OneMinuteCode. All rights reserved.