Input Data Tag Mengambil HTML JavaScript

function myFunction() {
  var firstname = document.getElementById('firstname').value;
  var lastname = document.getElementById('lastname').value;
}
Cute Caribou