JavaScript mendapatkan data input formulir

var text = document.querySelector('#text').innerText; //'#':id '.':class
Armandres