This is an example of the operation of the Fetch API The the variables x and y can be replaced by "meaningfull" names myObject and myText as in the 3rd example.