Tag: javascript

0 votes
0 answers
57 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
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
559 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
930 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.7K 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.8K 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
860 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
586 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
3K 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
749 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
929 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
51 votes
1 answers
3.1K views
Nightwatch.js how to ignore main page? Or how to use window.location.host?

I'm a big noob in nightwatch.js but i have to decide this task. Please help me... I have a simple autotes

avatar
Cortez
0 1 0 9
asked 07 September, 2021
57 votes
2 answers
2.3K views
How .elements() works in nightwatch?

Considering I have multiple trs I want to pick one and edit value in it by clicking edit button bounded to it.

avatar
Trudy
0 1 0 9
asked 07 September, 2021