Category "javascript"

How can I make the output of a js not on one single line? How can the output "fit" the input box?

This is the js code I have written. It generate a random string. I have set this string to be 100 characters long but it doesnt "fit" the input box. The string

How do I change this React Navigation v5 code to v6?

I'm studying react native and discovered that tabBarOptions was already deprecated. I know that including it in screenOptions is the new way but how do I do thi

How does custom made asynchronous wrapper work?

I was following a code along video in Node.JS and creating the backend of a CRUD application. I was able to understand the logic for all the controllers for the

jsdoc to auto use description field

I have an object like this: resource.foo= { name: "Foo", desc: "Some description" } I find myself writing: /** * Some description */ resource.foo= { na

Using ES6 in Vue.js [closed]

I am planning to learn Vue.js , someone told me that I need to learn es6 to continue Vue.js , I asked so many people on this but I need more o

Chaining animations when one is completed jquery

i am trying to get familiar with jquery by doing some animations. The goal of the code that I will show is to rotate an image on mouse hover then make 3 other i

Next.js - Why I get hydration error in my header component

I am working on a job portal, I get user authentication using JWT and store it in local storage. I get hydration error in my header component when authenticated

When a user mentions the owner the bot should say you're not allowed

I am trying to make it when a user is tagged (eg. MyNameJeff#0001), the bot will automatically respond with you're not allowed to mention them and delete their

Mutate nested deep object

I have this object const a = { elementErrors: { errorMessages: [], errors: { project: "Issues with this Issue Type must be created in the same p

Socket.io Client repeats event action multiple times from one emit

I am creating a simple diffie hellman demo with sockets and it seems that whenever my server emits any event, the client repeats it multiple times. For example:

How to keep proportion of row with helper jquery sortable-ui

I use sortable plugin to create a table where user can drag and drop the rows to change the order. The plugin works fine but the dragged row does not keep the p

Ethers pass method name with parameters instead of hexdata

I am using ethers to interact with contracts on Ethereum. This is how my method looks like: const tx = await signer .sendTransaction({ to: contrac

When does a cookie with expiration time "session" expire?

As the question title says, what's the session timeout when I set "session" as cookie expiry? Can you guys point me to some documentation (I searched but haven'

Calling A Function from the main.ts file to other ts file is not working in Node js

I have a project in Node JS with the following structure: ormconfig.js package.json src main.ts user user.module.ts user.entity.ts user.service.ts (include a fu

how can i add javascript files into angular?

i have got a template works fine on visual studio , but when i tried to use it on my angular project i don't know why the javascript code doesn't work , i fille

How to alert north east south west? Javascript

I am new to coding and have had alot of help with this. I am making a game, you have to choose the right cell in the table. I am wondering how i would be able t

How can I pass the value of a unchecked checkbox to the form? [duplicate]

I have a webiste where users can find a discord server with their option,such as if server is NSFW, premium,member count and tags. I tried to

How to make a responsive tile area in leaflet

I'm New to leaflet and game development. I have created a custom map to be displayed in leaflet. Map looks more like https://map.pavia.io/#/ I want to do the sa

Vue js can't find page when deployed on firebase

I'm building a stupid web app to do something funny with my friends. I'm using firebase hosting service and discord oauth2. The problem occurs when trying to ac

How to limit an array field in javascript object to a certain length

I know this may a simple problem but I have a the following javascript object: const categories = { title: 'cat1', contents: [ { nam