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
112 views
0
[javascript] Questions about callback

Hello, the code below is written as an example for callback.var cbExample = function(number, cb) { setTimeout(function() { var sum = 0; for (var i = number; i > 0; i--) { sum += i; } cb(sum); }, 0)...

2 years ago

1 answers
46 views
0
Js Selector Question

Hi, how are you?<!-- html --><style> foo { border-right: 1px solid black; }</style><div id=foo></div>$('#foo').mosedown(function(e) { // // event code}I want to process ...

2 years ago

1 answers
76 views
0
When loading an xml document, it does not work in Chrome

function readxml(filename) { xmlHttp = new window.xmlHttpRequest(); xmlHttp.open(GET, filename, false) xmlHttp.send(null) xmlDoc = xmlHttp.responseXML.documentElement}function loadXMLDoc(dname) { try ...

2 years ago

2 answers
102 views
0
[javascript] Question when importing a response object with a prompt

Hello. The code below is the code that you want to get the data of a specific link to JS.Through this code, I first learned about fetch functions, promise objects, and response objects. const endpoint...


1 answers
58 views
0
It's the code I got. The game is not running...Help me!

I scratched the game source code I found on the Internet, modified only the image part and css part, and ran it, but Uncaught ReferenceError: $ is not defined and it does not run... What's wrong with ...

2 years ago

1 answers
41 views
0
I have a question about JavaScript layer pop-up.

Different layer pop-ups were applied to different divisionsNo matter which div you press, only one layer pop-up appears.The basic framework for creating layer pop-ups is like this. function wrapWindow...


1 answers
99 views
0
Flask and javascript

The web page is being implemented through flask.Is there a way to dynamically get the value from javascript on the app of flask?Or is there a way to connect to db in javascript?If you get the value fr...

2 years ago

1 answers
66 views
0
[html, JS] I want to get the contents of another id or change the contents of a specific id dynamically.

Hello! I am a liberal arts student who is studying the front end as a hobby.It is difficult to manage time to study in earnest, so I am studying with my acquaintance in a study method.As a result, the...

2 years ago

1 answers
18 views
0
Special symbols when creating html using javascript

As I attached the image, I just put the arrow as a string with the special symbol on the PC and marked it on the webThe top and bottom directions are bold, but the diagonal arrows are thin Is there an...

2 years ago

1 answers
15 views
0
Replace rear navigation in JavaScript regular expression

const regfix1 = /(?<=\s\S*)\s*/gi;In JavaScript, we created a regular expression like this to assign all spaces except the first space in the specified string. However, the execution environment do...

2 years ago
« - 109 - »

© 2024 OneMinuteCode. All rights reserved.