Skip to content
Advertisement

Laravel – simpliest elseif [closed]

JavaScript

Hi, have i to do it more simple or its a normal practice?

Advertisement

Answer

Instead of using if-else, I would recommend you to use switch statement.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement