what is document in js code example Example: javascript document var name = document.getElementById('name').value ; alert('hello, '+name);