From fe6002977e47ec11bd8076f1af29bee0a357f3e0 Mon Sep 17 00:00:00 2001 From: aschaap Date: Sun, 11 Apr 2021 13:29:15 -0400 Subject: [PATCH] docs: change (+) operator to `Number` function to match code (#41570) PR Close #41570 --- aio/content/tutorial/toh-pt5.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/tutorial/toh-pt5.md b/aio/content/tutorial/toh-pt5.md index 3cc9ff104b..5559913742 100644 --- a/aio/content/tutorial/toh-pt5.md +++ b/aio/content/tutorial/toh-pt5.md @@ -406,7 +406,7 @@ The `paramMap` is a dictionary of route parameter values extracted from the URL. The `"id"` key returns the `id` of the hero to fetch. Route parameters are always strings. -The JavaScript (+) operator converts the string to a number, +The JavaScript `Number` function converts the string to a number, which is what a hero `id` should be. The browser refreshes and the application crashes with a compiler error.