From e3d5b0ea4b0205abbdb2ff52537e1b8a2037f1ef Mon Sep 17 00:00:00 2001 From: Clarence Bakosi Date: Tue, 28 Oct 2025 19:51:29 +0100 Subject: [PATCH] feat(curriculum): Add interactive examples to What Is JavaScript, and How Does It Work with HTML and CSS lesson (#63170) --- .../672d26385dbe73203c4dac81.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/blocks/lecture-introduction-to-javascript/672d26385dbe73203c4dac81.md b/curriculum/challenges/english/blocks/lecture-introduction-to-javascript/672d26385dbe73203c4dac81.md index 612c83a8f90..ca4f6fba800 100644 --- a/curriculum/challenges/english/blocks/lecture-introduction-to-javascript/672d26385dbe73203c4dac81.md +++ b/curriculum/challenges/english/blocks/lecture-introduction-to-javascript/672d26385dbe73203c4dac81.md @@ -5,7 +5,7 @@ challengeType: 19 dashedName: what-is-javascript --- -# --description-- +# --interactive-- JavaScript is a powerful programming language that brings interactivity and dynamic behavior to websites. @@ -15,6 +15,8 @@ For example, when you click a button, submit a form, or hover over a menu, JavaS Here's an example of how these three work together: +:::interactive_editor + ```html @@ -32,7 +34,9 @@ Here's an example of how these three work together: ``` -In this example, HTML is used to define the content: a heading (an `h1` tag) and a button (the `button` tag). +::: + +In this example, HTML is used to define the content: a heading (an `h1` element) and a button (the `button` element). CSS is used to apply styles to the heading, such as making the text green. JavaScript is used to display an alert message when the button is clicked.