Starting with Java 21 (I think), they’ve introduced ignored variables, so you can now actually do this:
try {
operation();
} catch (Exception _) {
// nice weather, eh?
}
Edit: forgot that this is about JS lel
Starting with Java 21 (I think), they’ve introduced ignored variables, so you can now actually do this:
try {
operation();
} catch (Exception _) {
// nice weather, eh?
}
Edit: forgot that this is about JS lel
if (error) {
continue;
}
Yeah, Python has it as well. I think the only real use of it is code readability since you declare that this variable will never be used.