Trying to create javascript function to search text file and return key pairing

So lets say I have a file called fruit.txt that contains the following data in this format: banana:yellow,apple:red,lime:green I want to create a javacript function called fruitcolor that takes the …

Querying Airport Lat and long from Airports.JSON react native

Im trying to query from a JSON file I import like this. you can find the File here import * as airportData from ‘../../Data/airports.json’; I put it into a variable and get the lat from the first …

What is a Scratch File?

I am currently trying to figure out all the functions that my IDE has, and I have come across a predefined folder when I create a project that is called ‘scratches and consoles’. The IDE only allows …

How to get a File() or Blob() from an URL in javascript?

I try to upload an image to the Firebase storage from an URL (with ref().put(file))(www.example.com/img.jpg). To do so i need a File or Blob, but whenever I try new File(url) it says “not enough …

Save click co-ordinates to a file on the server

I am currently outputting the user click co-ordinates to the console and saving the file manually. I am trying to output these coordinates to a json file on the server which will be updated every time …