DEV Community

Discussion on: If/else or just if?

Collapse
 
wolverineks profile image
Kevin Sullivan

Why is val not already typed? It could be anything?!? I'd rather look into avoiding either of these situations and make sure the type of val is already known.