DEV Community

Discussion on: Create an Analog Clock with Vanilla Javascript(For Beginners)

Collapse
 
ashishkumar profile image
Ashish Kumar

just one question, why those extra parentheses?
I mean it could have been ((seconds / 60) * 360) + 90 instead of (((seconds / 60) * 360) + 90)

Collapse
 
nepalilab profile image
Nepali Lab

It's just a personal preference. I find my code more readable so I tend to use those parantheses. :D

Collapse
 
ashishkumar profile image
Ashish Kumar

oh yeah, I understand that. There were identified as issues in SonarQube in one of my projects and I was like why dont you like this? :D

Collapse
 
oluwasegun profile image
oluwa-segun

I think it's just preference