Java Script

JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, weakly-typed language used for both client-side and server-side scripting. Its primary use is in rendering and allowing manipulation of web pages. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script).

0 votes
0 answers
37 views
No artigo de hoje vou apresentar a você 15 dicas muito boas da linguagem

   Atenção: nem todas dicas, especialmente os atalhos de código, v&at

avatar
asked 14 June, 2023
1 votes
0 answers
37 views
dassdsd asd asdasd asd sad

dassdsd asd asdasd asd sad dassdsd asd asdasd asd sad dassdsd asd asdasd asd sad dassdsd asd as

asd
avatar
Jen
0 0 0 0
asked 15 August, 2022
1 votes
4 answers
41 views
asdds a asda sdasdasd adasd asdasda

asdds a asda sdasdasd adasd asdasda asdds a asda sdasdasd adasd asdasda asdds a asda sdasdasd adasd

tag
avatar
Igor
0 0 0 0
asked 15 August, 2022
49 votes
7 answers
2K views
How does this milw0rm heap spraying exploit work?

I usually do not have difficulty to read JavaScript code but for this one I can’t figure out the logic. The

avatar
Robyn
0 1 0 9
asked 07 September, 2021
52 votes
1 answers
542 views
Why do ARM chips have an instruction with Javascript in the name (FJCVTZS)?

FJCVTZS is "Floating-point Javascript Convert to Signed fixed-point, rounding toward Zero". It is supported i

avatar
Majorie
0 1 0 9
asked 07 September, 2021
60 votes
11 answers
2.4K views
How can I round down a number in Javascript?

How can I round down a number in JavaScript? math.round() doesn't work because it rounds it to the neare

avatar
Rufus
0 1 0 9
asked 07 September, 2021
57 votes
11 answers
892 views
JavaScript % (modulo) gives a negative result for negative numbers

According to Google Calculator (-13) % 64 is 51. According to Javascript (see this JSBin) it is -13. How do

avatar
Percy
0 1 0 9
asked 07 September, 2021
62 votes
12 answers
2.4K views
JavaScript math, round to two decimal places

I have the following JavaScript syntax: var discount = Math.round(100 - (price / listprice) * 100)

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
67 votes
21 answers
1.8K views
What is JavaScript's highest integer value that a number can go to without losing precision?

Is this defined by the language? Is there a defined maximum? Is it different in different browsers?

avatar
Keith
0 1 0 9
asked 07 September, 2021
52 votes
18 answers
1.6K views
How to perform an integer division, and separately get the remainder, in JavaScript?

In JavaScript, how do I get: The whole number of times a given integer goes into another? The remainder?

avatar
Dusty
0 1 0 9
asked 07 September, 2021
51 votes
15 answers
1.7K views
Link and execute external JavaScript file hosted on GitHub

When I try to change the linked reference of a local JavaScript file to a GitHub raw version my test file stop

avatar
Margo
0 1 0 9
asked 07 September, 2021
49 votes
2 answers
832 views
How to call axios/api call in Nativescript application

I'm trying to build a small application on Nativescript-vue where I'm having backend laravel framewo

avatar
Nidia
0 1 0 9
asked 07 September, 2021
57 votes
1 answers
2.5K views
Attempted to assign to readonly property even though same command works elsewhere?

I have a Javascript function (in an Angular 2 NativeScript based mobile app) which is triggered on a button pr

avatar
Wilber
0 1 0 9
asked 07 September, 2021
65 votes
5 answers
562 views
Is there localstorage in nativescript?

How to share the data across the pages which resides in application.Can anyone tell about localstorage in nati

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
47 votes
1 answers
1.2K views
iOS 3D Touch Support in Native Script

I want to utilize the 3D touch support in iOS through Native Script. Currently there is a Plugin for Quick act

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
55 votes
1 answers
2.9K views
Adding a global variable / function in JavaScript (specifically NativeScript)

I'm learning how to write apps with NativeScript. I believe the best way to learn is by doing. For that r

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
61 votes
2 answers
2.7K views
Testing NativeScript app with Appium

I am learning NativeScript. I am trying to write some automated tests with Jasmine. From my understanding, I c

avatar
Alba
0 1 0 9
asked 07 September, 2021
52 votes
9 answers
729 views
Openstreetmap: embedding map in webpage (like Google Maps)

Is there a way to embed/mashup the OpenStreetMap in your page (like the way Google Maps API works)? I need to

avatar
Winford
0 1 0 9
asked 07 September, 2021
52 votes
2 answers
1.7K views
Nightwatch count number of element

I'am a newbie with Nightwatch and i would like to count the number of element. I am able to do this but I

avatar
Thurman
0 1 0 9
asked 07 September, 2021
52 votes
1 answers
912 views
How do I prevent errors when clicking an element on the page but element is not clickable?

I am writing a test for an element on the page, but when I use pageObject.click("@MyElement) on the element, s

avatar
Emilia
0 1 0 9
asked 07 September, 2021