Skip to main content
-4 votes
0 answers
38 views

I have assigned a value to cardsSelected in my constructor state. Using setState I am able to alter and read it's value. After this I set the state of cardsRemaining to 0. However, I'm told that this ...
Whelandrew's user avatar
-7 votes
1 answer
133 views

I'm creating a video game search app. I'm using an API so that clicking a searched game card takes you to a new page that contains images and a brief intro about the game. However, this does not work, ...
user31528169's user avatar
2 votes
2 answers
233 views

I am trying to solve the problem posed in this question which asks that division of two numbers be performed in a bitwise manner. So, I wrote the following functions. sum() adds two numbers. larger() ...
uran42's user avatar
  • 685
0 votes
0 answers
55 views

Models: Ngetest.phpp <?php defined('BASEPATH') or exit('No direct script access allowed'); class Ngetest extends CI_Model { public function showEcho() { return "naisu"; ...
Syraxes's user avatar
0 votes
0 answers
88 views

I'm working with a Nuxt 3 project, and I'm getting the following error related to Sass mixins when I try to run the dev server: ➜ DevTools: press Shift + Alt + D in the browser (v2.5.0) ...
Rinkal's user avatar
  • 71
1 vote
0 answers
37 views

I have a function that gets called when you click a button. I'm checking to see if the clicked item has the class "itm-active". If it does, don't do anything. Else check for elements that ...
bananas0102's user avatar
0 votes
0 answers
50 views

I'm building a backend application using NestJS, and everything was working smoothly. Recently, I added a new module and attempted to use services from existing modules within it. However, after ...
Naceur Kheder's user avatar
0 votes
0 answers
96 views

I'm currently trying to make a login and signup form using EJS, Express, Node, etc. However Whenever I submit data from a form, all data is being returned as "Invalid" I've checked my user ...
user30069178's user avatar
2 votes
2 answers
152 views

Working in p5.js on a class assignment. We have to make a music player. I found a tutorial in the site, but despite copying the code near-exactly (only altering so as to implement multiple songs), I ...
user29731287's user avatar
0 votes
1 answer
111 views

Record is defined as follows: /** * Construct a type with a set of properties K of type T */ type Record<K extends keyof any, T> = { [P in K]: T; }; It is defined such that for a Record&...
Sebastian Barth's user avatar
0 votes
2 answers
110 views

Does an empty function body implicitly return undefined in JS? console.log((() => {})()) Clearly it does right? The console outputs undefined in the example above... // but let's do ...
Asleepace's user avatar
  • 3,765
2 votes
1 answer
126 views

Why does this code work? for (const i in undefined) {} From for...in - JavaScript | MDN: The for...in statement iterates over all enumerable string properties of an object (ignoring properties keyed ...
Ooker's user avatar
  • 3,400
2 votes
2 answers
154 views

When I specify a type of foo|undefined for myConst below, type inspection correctly tells me that myConst has a type of foo|undefined on that line. However, in the next line down, type inspection says ...
Nate Glenn's user avatar
  • 6,784
1 vote
0 answers
32 views

When I tried to use holder image within the below code: import { run as runHolder } from "holderjs/holder"; import React, { Fragment, useEffect } from "react"; import { Image } ...
Park JongBum's user avatar
  • 1,411
0 votes
0 answers
50 views

In an Express app I have the following JS code (server side) in a middleware to check that a user provides an adequate token. This is only the relevant part for my question: const authHeader = req....
Michel's user avatar
  • 12k

15 30 50 per page
1
2 3 4 5
453