The Student Room Group

iDEA run code error worker resolution badge

Can somebody please help in answering this question. I am trying to amend the coding below. I cannot answer this question so any responses or help would be appreciated.

function connectToServer(userID, returnContent) {

 if (refreshServerData() == false) {

  initiateServerConnection();

 } else {

  alreadyConnectedToServer(true);

 }



 if (returnContent == true) {

  return this.getAllResponseHeaders();

} else {

  return 1;

 }

}
(edited 8 months ago)
Reply 1
Original post by Alexander170909
Can somebody please help in answering this question. I am trying to amend the coding below. I cannot answer this question so any responses or help would be appreciated.

function connectToServer(userID, returnContent) {

 if (refreshServerData() == false) {

  initiateServerConnection();

 } else {

  alreadyConnectedToServer(true);

 }



 if (returnContent == true) {

  return this.getAllResponseHeaders();

} else {

  return 1;

 }

}


if you send a pic i may be able to help

Quick Reply

Latest

Trending

Trending