Skip to main content
Code Review

Timeline for Base Conversion in Node.js

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
S Sep 21, 2017 at 19:04 history suggested Sᴀᴍ Onᴇᴌᴀ CC BY-SA 3.0
update grammar, formatting, punctuation
Sep 21, 2017 at 18:29 review Suggested edits
S Sep 21, 2017 at 19:04
Sep 21, 2017 at 14:34 comment added Blindman67 @Gerrit0 I mention 'parseInt' in the first section as the easy solution. If you use 'let' in function scope you have created a function scoped variable and depending on where you define it you have also introduced a function scoped variable with a dead zone. It's not if you need a function scoped variable or not, it's about using the best type for the scope you are in. Though each may have their own reasoning I believe my argument sound, and I'll be dragged over hot coals before using a VB token if I don't have to, what next... then :P
Sep 21, 2017 at 13:41 comment added Gerrit0 I'm not entirely sure I agree with mixing let and var. By doing so I have to think more about which I really mean. It is very rare to need var for its function scoped capabilities. (I can't actually think of a place it is needed right now). Lastly, I know it's not the focus of the assignment, but parseInt(str, radix) is worth mentioning :)
Sep 21, 2017 at 11:06 comment added Blindman67 @ZachHilman the difference between var and let are mostly to do with scope,let (and const) are block scope, var is function scope. Scope is an important concept that you will need to understand before you can progress to the difference between let and var. There is little room in the comments to explain so a good reference and source of examples and tutorials is MDN developer.mozilla.org/en-US/docs/Web/JavaScript.
Sep 21, 2017 at 10:54 comment added Zach Hilman Thanks for the help! I am actually doing this on my own as my class is Java but I already know that. This happens to be my first js program ever. Do you have any recommendations on a site or book for best practices/learning js? Also I did not know there was a difference between let and car, could you tell me? Thanks again!
Sep 21, 2017 at 10:51 vote accept Zach Hilman
Sep 21, 2017 at 8:01 history edited Blindman67 CC BY-SA 3.0
added 5 characters in body
Sep 21, 2017 at 7:55 comment added Javier García Great review, blind guy :)
Sep 21, 2017 at 7:30 history answered Blindman67 CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /