Generation

generate functionThu, 15 Jun 2023

Login

function login() { let username = document.getElementById('username').value let password = document.getElementById('password').value if (username === 'bob' && password === 's3cret') { display('Hello, ' + username) } else { display('Login incorrect') } }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant