Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Javascript - Beautiful Validation, No Extras.. Parent comment
if(!username || username.trim() = '') return { error: "No Username Given.", field: 'name' }; if(!password || password.trim() = '') return { error: "No Password Given.", field: 'password' };
Is that not clever enough??? Even a monkey would understand this.
There are no comments on this comment yet.
Is that not clever enough??? Even a monkey would understand this.