Closed jshreyans closed 5 years ago
hourHand.style.transform = "rotateZ(" + hours + "deg)"; Although template strings are a part of ES6 syntax and we do not encourage using it during the fest sites unless it is transpiled (due to compatibility issues with older browsers), but you must know about it and how much cleaner looking code it produces. For assignment though, using ES6 is encouraged as we all have modern browsers.
line 72-74 Although the code performs well, but it is not readable enough. It may cause trouble when working in a team and other person would wanna make edits to your code. You can make it more readable by adding comments or naming the constants in your code
Apart from these, the logic part of the code is well written :tada: :tada:.
Yeah I got what you mean. And I'll add comments for line 72. Thanks.
@LakshSingla This seams fine now?
@kunal-mohta Yep :+1:
Completed B2(Clock) with JS
setInterval()
function andDate()
object