12 lines
205 B
Markdown
12 lines
205 B
Markdown
importance: 5
|
|
|
|
---
|
|
|
|
# Uppercast the first character
|
|
|
|
Write a function `ucFirst(str)` that returns the string `str` with the uppercased first character, for instance:
|
|
|
|
```js
|
|
ucFirst("john") == "John";
|
|
```
|
|
|