Before
let b;
switch (a) {
case '#':
b = 'one';
break;
case '##':
b = 'two';
break;
default:
b = 'unknown';
}
After
let b = ({
'#': 'one',
'##': 'two'
})[a] ?? 'unknown';
For further actions, you may consider blocking this person and/or reporting abuse
Github is great, but have you considered how to make yours more attractive for potential employers or other visitors? Even non-tech ones like recruiters!
Take a couple of hours and show your best side as a person - and a programmer.
CJ R. -
Scofield Idehen -
Only Devs -
π‘Piyush Kesarwani -
Once suspended, taufik_nurrohman will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, taufik_nurrohman will be able to comment and publish posts again.
Once unpublished, all posts by taufik_nurrohman will become hidden and only accessible to themselves.
If taufik_nurrohman is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Taufik Nurrohman.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community π©βπ»π¨βπ» safe. Here is what you can do to flag taufik_nurrohman:
Unflagging taufik_nurrohman will restore default visibility to their posts.
Top comments (0)