4 ms·
Notice the "startsWith" function. It has nothing to do with "Windows 9" and everything to do with Windows 95 and 98
by castiel 12y ago
Notice the "startsWith" function. It has nothing to do with "Windows 9" and everything to do with Windows 95 and 98
- Sanddancer 12y agoYes, and "Windows 9" starts with "Windows 9". So the function will see that, "yep, the string's there" and throw it down the path of handling antique versions of windows.
- Igglyboo 12y agoDo you know what "startsWith" does? It checks if the string starts with a given string. "Windows 9", "Windows 95", and "Windows 98" all start with "Windows 9".