I am using import { Camera } from ‘expo-camera’; to take pictures. The taken picture is stored in the devicecache. so far so good. Now I am trying to upload this taken images to Google Firebase Storage using import { getStorage, ref, uploadBytes } from “firebase/storage”; The return of…
How to destructure an Object from Array with useState in React
I need to destructure the filter Object from Array with useState in React, but I can’t get it. I tried braces, brackets, and still getting undefined. Does anyone knows how to get that values? The filter object: Console log: Answer Based on your latest screenshot of the entire component, the problem is t…
how to add user data javascript
I am having trouble being able to add user input data. I can get it working when I add in the data myself all the users show up in the console in the array. For people 1-3 I would like them to enter their name and favorite color but I can’t seem to be able to store it or at
How would I have this sum print out it works
I don’t know how to work this out, please help Answer You could define a sum function that takes two numbers and returns the sum i.e., the total amount resulting from the addition of two or more numbers, amounts, or items. “the sum of two prime numbers”
How to configure VueGapi as global in Vue 3 App
I’m trying to use the VueGapi plugin for a gmail app in Vue. Here is my main.js When I try and reference it with this.$gapi I get the Uncaught TypeError: this.$gapi is undefined A little new to Vue so any help would be appreciated! Answer The .mount function does not return a vue app, that’s why y…
JavaScript function is always returning true where it should be false
My JavaScript function is always returning true whatever I write. The problem given wants me to validate that: space at beginning or at end are Not allowed. every character in the field must be a letter or a space (at most 1 space!) to seperate the words in the field (it’s about palindrome words, i alre…
nodejs import dynamic variable from another file
by using module.exports = var; and const var = require(“./file.js”); we can access a variable from another file but the imported variable is static and cannot change even if the original variable changes in the original file, how can I export an array that can be updated at any time and accessible…
function returning NaN in javascript
I am trying to write a function that calculates the average student age in a list of student objects, but when I run the code the function prints NaN as an output this is how i constructed the array ( i got the input from the user) i tried to calculate the total of student age (removing the divide operation)
how to convert blob to wav file in javascript and connect python flask
I want to create web app using STT model by python flask. when user record the voice and send it server, trans it to text on web. there is my javascript part: and there is flask part: it comes out error I don’t know why blob didn’t convert to wav…how can I fix it? probably there are many no …
How to create Polls on LinkedIn
I was able to successfully create regular Text, Image and Video Shares on LinkedIn using the Shares API. Now, I also need to create Polls on LinkedIn and I’ve searched so much around but can’t seem to find any documentations on how to do that using the Shares API. Does LinkedIn support creating Po…