Skip to content

beginner javascript button

I’m really struggling with a basic javascript problem and I can’t find the right way to Google help. I’ve been practicing Javascript, but thus far I’ve mainly been just following prompts, not coding my own ideas. I genuinely tried to solve this problem on my own for several hours. This…

Multiple conditions for result filter

I have an array of objects that I am filtering through based on a query. If the query matches a title inside the array of objects I return it. These words if I just search on a word like “xbox”, however, if I search “xbox controller” it returns nothing. I was thinking of splitting req.…

drawStar() with mouse inside canvas mouse up mouse down

What am I missing? The drawCircle and DrawPolygon (it is located in codepen https://codepen.io/mancod/pen/oNYdrVL work fine. I am still very new to all this still, and beat myself up as nothing in life should be this messy. A star is a circle as is a polygon. I get that the star has an inner and outer radius,…

Upload to Azure Blob via javascript upload ticket

I am building an upload tool for our website. One of the requirements is the ability to store large files into specific azure blobs. I am running into limitations of Azure Web Apps being able to handle this on the server side. Is there a way out there to create an upload ticket (similar to vimeo) that our ser…

Nested Arrays and returning non-labeled values

I’ve got an API that returns the following: I’m able to get the second metric using the following three lines of code: &value would equal 28.24. Is there a way to combine these into one line of code? I’m looking for something like this: &value=jsonObj.data.values[0].[1] The issue is …