JavaScript return Statement

PHOTO EMBED

Tue May 26 2020 13:04:57 GMT+0000 (Coordinated Universal Time)

Saved by @Sai Rakshith

function myFunction(name) {
  return "Hello " + name;
}
document.getElementById("demo").innerHTML = myFunction("John");
content_copyCOPY

https://www.w3schools.com/jsref/jsref_return.asp