From 8c4e47ca0a8d95ef49ea3b39f5eec454a3d15ae9 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Fri, 21 Jul 2023 19:43:58 -0700 Subject: [PATCH] Fix link to `continue` statement (#28117) --- files/en-us/web/javascript/reference/statements/switch/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/javascript/reference/statements/switch/index.md b/files/en-us/web/javascript/reference/statements/switch/index.md index 351d4bc260b7739..c9809d225cb9b0a 100644 --- a/files/en-us/web/javascript/reference/statements/switch/index.md +++ b/files/en-us/web/javascript/reference/statements/switch/index.md @@ -77,7 +77,7 @@ switch (foo) { // Logs 0 and 1 ``` -In the appropriate context, other control-flow statements also have the effect of breaking out of the `switch` statement. For example, if the `switch` statement is contained in a function, then a [`return`](/en-US/docs/Web/JavaScript/Reference/Statements/return) statement terminates the execution of the function body and therefore the `switch` statement. If the `switch` statement is contained in a loop, then a [`continue`](/en-US/docs/Web/JavaScript/Reference/Statements/break) statement stops the `switch` statement and jumps to the next iteration of the loop. +In the appropriate context, other control-flow statements also have the effect of breaking out of the `switch` statement. For example, if the `switch` statement is contained in a function, then a [`return`](/en-US/docs/Web/JavaScript/Reference/Statements/return) statement terminates the execution of the function body and therefore the `switch` statement. If the `switch` statement is contained in a loop, then a [`continue`](/en-US/docs/Web/JavaScript/Reference/Statements/continue) statement stops the `switch` statement and jumps to the next iteration of the loop. ### Lexical scoping