smaranjitghose/girlscript_chennai_website

Returning Boolen values from JS functions.

Closed this issue · 3 comments

Description of the enhancement
Many of the JS functions are used only for the if else purposes.
But, all the comparison operators return boolean values. So we can replace the if-else statements with the simple return value. I think this will be very useful.

This will minimise and enhance the code a lot.

@anushbhatia what are your thoughts?

Screenshots
Screenshots of the proposed changes compared with the current version of the project

@anushbhatia what are your thoughts?

ok but it should decrease the lines of code okay?

ok but it should decrease the lines of code okay?

yes for sure!!!