Tags:

How to pass variable in URL React js


in react js I made a simple date picker and select date from the dropdown calendar and I displayed it in the console. that date stored in a variable, now how to use that variable in URL My questions : …

Tags:

Function returns Nan returns when I send More argument then function parameters


I couldn’t understand why it send the nan when I pass more arguments than parameters function percetageofworld3(population1) { return (population1 / 7900) * 100; } const describePopulation = …

Tags:

How to push object keys to an array multiple times based on their integer values in JavaScript


I’ve looked on several sites including through the suggested answers when posting this question, so forgive me if it’s been answered elsewhere. I’m very new to JavaScript (and coding in general). I’m …

Tags:

discord.js v13 temp voice channels – joinVoiceChannel() @discordjs/voice


I am trying to add a command, that allows the creation of temporary voice channels. I have created a new client within this command to try and get the joinVoiceChannel() params another way. File: …

Tags:

ExtJS – Where to put external libraries


If in my project I need to use external libraries, lets say JQuery, where should I put these libraries in the ExtJS application project directory structure? Is PROJECT/resources/scripts/ OK?

Tags:

Compare date and time in array of objects


I’m trying to compare the date and time to manipulate my data. I need to check which is the latest data by checking updated_at key inside object. Below I have given the scenario. // below is my data …

Tags:

Javascript for…of loop over array of objects running one too many times


I have an array of objects that I’m iterating through and recording to Google Sheets, and it’s working mostly fine, recording all of the objects in the array correctly. However my catch block is …

Tags:

How to move the cursor position within SCeditor?


I am inserting text into an instance of SCeditor and would like to move the cursor after the insert, to a specific position within the inserted text. Code of the SCeditor init: var textarea = $(‘…

Tags:

How I can return result of js or any function to the screen of iPhone? by ContentView


// ContentView.swift // Shared import Foundation import SwiftUI import JavaScriptCore class cube { var result: String func do_js(text: String) -> String { let jsSource = &…

Tags:

Data Transfer Between Options to Same Value and Value


There are two different select elements. These have equal value and text. There is also a radio button. If the button with the same id is selected, I want to pass the value of the first option to the …