Here is the web app https://script.google.com/macros/s/AKfycbyEHj5qtIeCZh4rR6FutBLQ3N9NihreaTv7BFj4_saOfNWJUG0Tn2OtvzQs4zASYHnNiA/exec Any idea on how could I make it show up the links or hyperlinks some cells have? I have made this web form mainly following a tutorial so I’m somewhat new, I try to unde…
Why does the callback hell works and the async/await doesnt? (in this particular case that i am testing)
I have this two codes (one i use callback hell and other async/await): The callback hell works as i imagined (the string logs appear lastly). Then i tried to convert the same code but with async/await, like this: Now the first await blocks the main thread while the other two keeps showing lastly. What am i do…
How to set the regex for this in javascript?
Usernames are used everywhere on the internet. They are what give users a unique identity on their favorite sites. You need to check all the usernames in a database. Here are some simple rules that users have to follow when creating their username. Usernames can only use alpha-numeric characters. The only num…
How to replace switch with Object literals
When i rewriting my old code, i had a problem i don’t know to to optimize this code in past i use switch,but now i know about Object literals, my code: How i can replace him with object literals? Answer You can write the cases as object literals and iterate over them:
array.splice() removes the content of an entry but not an entry itself
I am trying to remove an entry from an array using array.splice(), using this bit of code: let replaceThisArrRemoved = replaceThisArr.splice(positionNumber, 1); When I use replaceThisArr = [“apple”, “orange”, “pear”] and positionNumber = 1, it will return replaceThisArr = […
Tracking redux state
I faced a problem when using redux. I have two arrays with objects in it, initially they are empty. One of these arrays contains objects that are marked as ‘favorite’ – by user. My reducer for adding item: I have this ‘toggle’ type for the same button if user decides to add and t…
Set uploaded photo as website background image [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I wrote a very simple image upload script, after uploading the image I thought of making the …
Javascript/jQuery to get subarray value with random array key
I have these below JSON data: Assume above array variable is var data; For this subarray jQuery331045811028719032642 is auto generate. My question, how to get seconds array value using jQuery? I tried this: but it returns undefined. Answer You can get the seconds using Object.values
Storybook does not start
I have created react app with and create-react-app (and not made any changes in the app ) and initialized storybook by running npx sb init but running yarn storybook gives the following error. I have also tried this with nextjs but storybook gives the same error. Running npx sb info give the following info. A…
Getting mutation error in Nuxt JS while binding form with state
I am trying to bind my form’s fields with my vuex store in Nuxt JS. It works fine with normal text fields with get() set() in computed. But having trouble in customizing getting and setting manually. I am trying to push objects to an array in a specific format from my template to store and also keep the…