Common Issues / Things To Be Aware Of for Alan's OS Class ========================================================= Methods ======= 1. slice vs. splice These are not the same method. Make sure to use the right one! * slice: Creates a new array from a designated length. * splice: Changes the original array based on parameters. 2. substr vs substring Again, these are not the same method. Make sure to use the right one! * substr: First Parameter specifies where to start, but the second specifies string length, not end position. * substring: First Parameter specifies where to start, and the second specifies where to end. Web Development =============== 1. CSS references in Javascript. If a CSS reference is made in JS without JS initialization, it will not work even with external CSS. To edit CSS in JS, a reference must be initialized/defined in JS, regardless of external CSS existence. OS Specific =========== 1. Off-by-1 errors on CPU Op codes can cause seemingly wild inaccuracies from the desired output. * Do not be discouraged. To debug, trace the input/output digit by digit if necessary. 2. String to Number back to String data loss. * Converting '02' to a number, 2, then back to a string produces '2,' not '02.' Be careful! This leads to the problem specified above.