From f07906fef3afaff5f937b0fce524b04429236ff3 Mon Sep 17 00:00:00 2001 From: Benjamin Russel Date: Thu, 11 Oct 2018 10:57:51 +0100 Subject: [PATCH] Updates typo in sample snippet from of to off --- snippets/sample.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/sample.md b/snippets/sample.md index d30f87f74..e900209b3 100644 --- a/snippets/sample.md +++ b/snippets/sample.md @@ -2,7 +2,7 @@ Returns a random element from an array. -Use `Math.random()` to generate a random number, multiply it by `length` and round it of to the nearest whole number using `Math.floor()`. +Use `Math.random()` to generate a random number, multiply it by `length` and round it off to the nearest whole number using `Math.floor()`. This method also works with strings. ```js