GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing javascript.info — Uppercase the first character back to the lesson Uppercase the first characterimportance: 5 Write a function
We can’t “replace” the first character, because strings in JavaScript are immutable. But we can make a new string based on the existing one, with the uppercased first character:
There’s a small problem though. If The easiest way out is to add a test for an empty string, like this: |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |