Update article.md

This commit is contained in:
LeviDing 2020-09-17 21:07:02 +08:00 committed by GitHub
parent e074a5f825
commit 1e0b2bf4fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -185,7 +185,7 @@ For instance, the aforementioned function `showMessage(from, text)` can be calle
showMessage("Ann");
```
That's not an error. Such a call would output `"Ann: undefined"`. There's no `text`, so it's assumed that `text === undefined`.
That's not an error. Such a call would output `"*Ann*: undefined"`. There's no `text`, so it's assumed that `text === undefined`.
If we want to use a "default" `text` in this case, then we can specify it after `=`: