Questions tagged [javascript]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], etc.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

React JS Toggle Selected Item

I'm using react hooks, state within my component. A list of options is available to the user to select. I need tokeep track of which options have been selected - see "selectedArr" in state. ...
0
votes
0answers
2 views

TinyMCE v4+ top level event for adding and removing editors?

Working on getting my chrome extension to insert content into tinymce editors that exist on web pages. Issue is that in versions 4+ I am unable to set up a listener to check if a new editor instance ...
-1
votes
0answers
6 views

Display selected data from object if it matches with id javascript

var myData=[{id: 655, permissionType: "book", instructorControlled: "", batchId: -1, title: "PAckagebook1",?…},{id: 643, permissionType: "book", ...
0
votes
0answers
8 views

How to Navigating within the javascript object

enter image description here api link : https://type.fit/api/quotes Here I want to navigate the objects in my array. I use the filter method but it puts it undefined. For example I want to bring all ...
0
votes
0answers
3 views

testing login api with jest

how to test this Api and get 100% score of testing coverage? const login = async (email, password) => { axios .post('https://conduit.productionready.io/api/users/login', { user: { ...
0
votes
0answers
10 views

How can I update a chartist in PHP

I'm using a chartist and would like to update it each time the user click on a button with date he choose, for the moment I'm able to load my chartlist with php data, but I have no idea how can I load ...
0
votes
0answers
2 views

Why does log4js stop working, after initially creating and writing to the log file the first time?

I'm trying to implement logging, in a Node.js application. For this, I have chosen log4js, which was working for some time, but all of a sudden started acting out. When my log file isn't created, it ...
0
votes
1answer
15 views

Evaluate if statements in javascript

So I'm following the modern JavaScript from the beginning by brad traversy, and in the guess number project the app ignores all the conditions in the first if statement and continue. I checked the ...
-1
votes
0answers
14 views

How do I alternate a (function?) output

My question is based on this jfiddle: https://jsfiddle.net/sn0wy0wl/svm2q7Lt/3/ (Includes moment.js) I want to be able to use this as a tracker/timer for events. Which it already is, to but I wish to ...
0
votes
2answers
12 views

add a query parameter to /objetc api call in react?

I was asked to add a query parameter to a '/object' API call (and implement it - I think the parameter is suppose to be a function) I was googling all day and could not find out what this means thanks ...
1
vote
0answers
8 views

ScrollMagic responsive duration / endpoint for a sticky nav?

I'm using Scroll Magic for a sticky side nav. I would like the side nav to STOP right before the next section but as of now the duration endpoint is showing about 200px below where I would want. How ...
0
votes
0answers
5 views

No Access Control Allow Origin present on requested resource error. (Parse Server & React)

I created an express application that depends on Parse-Server. My express application already has the cors package installed. What is strange is that when I try to register on the application using ...
0
votes
0answers
7 views

Mongoose Typescript Interface Problem with Populate()

I have recently started to use Typescript and I have a problem where I am trying to implement a script with Mongoose and generic class. In summary, I am trying to evaluate what interface is returned ...
0
votes
0answers
5 views

How to I code for my app to access contacts in device?

How do messaging apps like WhatsApp or Signal or any app , get access to contacts , camera and all. I'm building a web chat application using JavaScript , NodeJS . I want my app to access contacts of ...
-3
votes
0answers
19 views

in javascript, what does - - mean? [duplicate]

amount hear result in 22, how is it adding insted of subtracting const amount = 20 - -2;

15 30 50 per page
1
2 3 4 5
145314
在线观看国产午夜福利片,婬荡少妇21p,欧洲熟妇牲交,五十路熟妇高熟无码视频