Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const name = document.getElementById('name'); //entendido
- const password = document.getElementById ('password') ; //ok
- const form = document.getElementById('form'); //ok
- form.addEventListener ('submit' /* ok */, (e) => { /* que significa essa sintaxe de função? */
- let messages []; //array
- if (name.value == "" || name.value == null) { //if que checa se é vazio ou nulo
- messages.push ('Precisa do nome'); //insere aviso no array
- }
- }) ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement