how to use javascript to get full file path

JavaScript
const onChange = (event) => {
  const value = event.target.value;

  // this will return C:\fakepath\somefile.ext
  console.log(value);

  const files = event.target.files;

  //this will return an ARRAY of File object
  console.log(files);
}

return (
 <input type="file" onChange={onChange} />
)
/* Found from Stack Overflow */ document.getElementById("retreiveData").innerHTML = "<p>Message</p> <a href=message>" + key + "</a> <p>ok?</p>"
Source

Also in JavaScript: