Skip to content

Browser Environment Eval#219

Open
acl13 wants to merge 13 commits intoprojectshft:masterfrom
acl13:master
Open

Browser Environment Eval#219
acl13 wants to merge 13 commits intoprojectshft:masterfrom
acl13:master

Conversation

@acl13
Copy link

@acl13 acl13 commented Jul 31, 2024

No description provided.

submit.addEventListener("click", onSubmit);

function onSubmit() {
if (userName.value === "" || userPost.value === "") {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a nice try for validation, but actually you can write spaces in the input and this wont trigger the alert and then you have an empty post
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments