Aric Posted July 24, 2020 Share Posted July 24, 2020 On https://www.w3schools.com/graphics/canvas_clock.asp , the line "radius = radius *0.90" within the code in the "try it yourself" example doesn't contain a ";" ...but the same line in the following "code explained" does... My Question is, is this a mistake, or am I missing something.... Link to comment Share on other sites More sharing options...
Ingolme Posted July 24, 2020 Share Posted July 24, 2020 It's a mistake. Javascript does not require a semi-colon at the end of a line, but it is preferable to put one because you never know when your script might have it line breaks removed. Link to comment Share on other sites More sharing options...
Aric Posted July 24, 2020 Author Share Posted July 24, 2020 TY, that is what i thought ... i am trying to re-learn html/java... which i haven't used in almost 20yrs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now