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
332 views
0
How to store Slider origin in JavaScript session storage

I want to save the range input slider's discharge (the last position on the slider) in session storage and let the last release value appear when the web page is refreshed. I don't know exactly becaus...

1 years ago

1 answers
309 views
0
Addition question for JavaScript fractions. I don't know what the problem is.

The test is correct, but I just submit it and it's wrong...function solution(numer1, denom1, numer2, denom2) { var answer = []; if(denom1 === denom2) { answer.push(numer1 + numer2) answer.push(denom...

1 years ago

1 answers
275 views
0
I have a question for JavaScript.

A.jspB.jspC.jspThere's a .Pressing the button on A.jsp moves you to B.jsp.In B.jsp, go to C.jsp when you press a browser refresh or f5 keyboardYou are about to write a script.Is it possible?I've used ...

1 years ago

1 answers
341 views
0
id.length==0 || id=="" Don't you think both mean the same thing?

id.length==0 || id==If you check id.length==0 || id== in javascript like this, right?But doesn't both right and left mean the same thing?If lngth is 0, of course nothing has been entered, so I think i...

1 years ago

1 answers
431 views
0
I make Othello with JavaScript.I'd like to suspend the processing, but it doesn't behave as I expected.

I make Othello with javascript.When the user clicks the p-tag, the location of the clicked board is passed to run().I prepared NPCs that players type randomly after typing, but I wanted to visually pa...

1 years ago

1 answers
420 views
0
Recursive function problems in javascript

function flatten(oldArr) { var newArr = [] for (var i = 0; i < oldArr.length; i++) { if (Array.isArray(oldArr[i])) { newArr = newArr.concat(flatten(oldArr[i])) } } else { newArr.push(oldArr[i]) } }...


1 answers
345 views
0
How can I use Ajax to make JSON data class?

How do I get JSON data via asynchronous communication in a class format?I would like to be able to display the image after pressing the button button on HTML, but I looked into various class methods, ...

1 years ago

1 answers
247 views
0
How to write Javascript if branching by nullish or not

Sometimes I want to make a conditional branch based on whether a value is nullish or not.For now, I am writing as follows, but if there is a clearer way to write (specifically, I don't have to write n...

1 years ago

1 answers
429 views
0
I want to combine text and variables with img src in react.

There is an App.js that shows a list of information extracted from db.In order for the image to be displayed, the text and variables must be connected in the img src as follows:The following settings ...

1 years ago

1 answers
383 views
0
If you try to substitute the type specified in type script, the array will not be accepted.

I write code in vsocde with vue3 and typescript.If you try to move the value from obj to itemObj after specifying the type with the following code, you get an error:typeObj={ Timeline: { Items—ItemsOb...

1 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.