I'm working on a conceptual project. Text reaveal on selection with highlight. I have to keep the text highlighted once it is selected. <div class="reveal" i
I'm trying to use the TypeORM CLI to create a migration. I followed their guide but when I run yarn run typeorm migration:generate I get the error: $ typeorm-ts
If I have a JavaScript object such as: var list = { "you": 100, "me": 75, "foo": 116, "bar": 15 }; Is there a way to sort the properties based on
I want to create a heatmap which shows the heat/color based on the value of one variable over all groups but not over all variables. Currently I have the follow
I am running a content.js on a youtube page and i want it to disable the controls of the youtube video. I am getting the video by video=document.querySelector('
I need to create a method to return a customers name and bank account value like so: *bank.printAccount('Sheldon'); // this should print 'Sheldon account is 0'*
I am new to Typescript and node. I have this function sftp.connect(config) //CONNECT TO STFP .then(() => { sftp.list(remoteFilePath) //LIST THE FILES IN
I have been given in built ui kit which has class based component without extending React.Component. Now i need to use those UI components for building UserInte
I want to send the json data from view to controller using ajax. How can I achieve that? The data in local storage is [{"productId":2,"productCost":"630","produ
I have a page with notes for a specific user, the problem is when i'm trying to access the state of 'my notes' i get 'undefined' on console, in postman, everyth
I'm currently learning as much as I can about recursion but I'm really stuck on how to use it to check whether all the number elements in an array are even numb
The code below saves the contents of a <textarea> to the DOM when the Save button is clicked. function save() { // Create the new el
How can throw an error with options or a status code and then catch them? From the syntax here, it seems we can through the error with additional info: new Erro
I think I should start off by mentioning I have Mac OS and am using Safari browser. This script is a web-scraper that is supposed to search for a given type of
I want to create custom component and build with webpack // packages/button/src/index.js import React from 'react'; function Button({ href }) { return <a
I am trying to dynamically import modules but getting following error - Compiled with problems:X WARNING in ./src/.../useCustomModule.js 21:21-56 Critical depen
Context and goal I have two fetch/then chains that build elements that I need for an event handler. The first chain loads data to build a <select> element
const AddItem = () => { const [user] = useAuthState(auth); const navigate = useNavigate(); const handleAddCar = (e) => { e.preventDefault()
Write a function that takes an array of consecutive (increasing) letters as input and that returns the missing letter in the array. It will be always exactly o
I have this set of data : [ { CIRPIC: 'SAL', ALLPIC: [7, 8, 9, 10] }, { CIRPIC: 'SUC', ALLPIC: [5, 6, 7] }, { CIRPIC: 'LI3', A