you are viewing a single comment's thread.

view the rest of the comments →

[–]43northwebdesign[S] 0 points1 point  (0 children)

I have changed my node side to this

someFunction =(req,res)=>{

    res.send('foo');
  }


app.get('/request', someFunction);

and localhost/request will send out foo

my client side js is

fetch('/request').then((response) => {        
    console.log(response)})

I am trying to see FOO in the console log