diff --git a/client/i18n/locales/english/intro.json b/client/i18n/locales/english/intro.json index af4b5cefa60..c5de79666e8 100644 --- a/client/i18n/locales/english/intro.json +++ b/client/i18n/locales/english/intro.json @@ -1175,6 +1175,12 @@ "intro": [ "Explore the distinctions between block and inline elements in HTML and CSS. This course provides insights into how these display types affect layout and behavior, empowering you to make informed design decisions." ] + }, + "top-learn-variables-and-operators": { + "title": "Learn Variables and Operators", + "intro": [ + "Get started with JavaScript by learning about variables and operators. This course covers the fundamentals of JavaScript programming, including data types, operators, and variable declarations." + ] } } }, diff --git a/curriculum/challenges/_meta/top-learn-variables-and-operators/meta.json b/curriculum/challenges/_meta/top-learn-variables-and-operators/meta.json new file mode 100644 index 00000000000..e359e1d8d43 --- /dev/null +++ b/curriculum/challenges/_meta/top-learn-variables-and-operators/meta.json @@ -0,0 +1,49 @@ +{ + "name": "TOP Learn Variables and Operators", + "isUpcomingChange": false, + "dashedName": "top-learn-variables-and-operators", + "helpCategory": "Odin", + "order": 10, + "time": "", + "template": "", + "required": [], + "superBlock": "the-odin-project", + "challengeOrder": [ + { + "id": "65e185b1500d930ce8ed909b", + "title": "Learn Variables and Operators Question A" + }, + { + "id": "65e18d61500d930ce8ed90a5", + "title": "Learn Variables and Operators Question B" + }, + { + "id": "65e1957a500d930ce8ed90a6", + "title": "Learn Variables and Operators Question C" + }, + { + "id": "65e1985e500d930ce8ed90a7", + "title": "Learn Variables and Operators Question D" + }, + { + "id": "65e19bc3500d930ce8ed90a8", + "title": "Learn Variables and Operators Question E" + }, + { + "id": "65e1a2ea500d930ce8ed90a9", + "title": "Learn Variables and Operators Question F" + }, + { + "id": "65e1aaf8500d930ce8ed90aa", + "title": "Learn Variables and Operators Question G" + }, + { + "id": "65e1aedc500d930ce8ed90ac", + "title": "Learn Variables and Operators Question H" + }, + { + "id": "65e1b46e500d930ce8ed90ad", + "title": "Learn Variables and Operators Question I" + } + ] +} diff --git a/curriculum/challenges/english/16-the-odin-project/top-learn-variables-and-operators/learn-variables-and-operators-question-a.md b/curriculum/challenges/english/16-the-odin-project/top-learn-variables-and-operators/learn-variables-and-operators-question-a.md new file mode 100644 index 00000000000..a7a911eb7f6 --- /dev/null +++ b/curriculum/challenges/english/16-the-odin-project/top-learn-variables-and-operators/learn-variables-and-operators-question-a.md @@ -0,0 +1,63 @@ +--- +id: 65e185b1500d930ce8ed909b +title: Learn Variables and Operators Question A +challengeType: 15 +dashedName: learn-variables-and-operators-question-a +--- +# --description-- +The simplest way to get started is to create an HTML file with the JavaScript code inside of it. Type the basic HTML skeleton into a file on your computer somewhere: + +```html + + + + + Page Title + + + + + +``` + +Save and open this file up in a web browser (you can use "Live Server" on Visual Studio Code to do this!) and then open up the browser’s console by right-clicking on the blank webpage and selecting "Inspect" or "Inspect Element". In the ‘Developer Tools’ pane find and select the ‘Console’ tab, where you should see the output of our `console.log` statement. + +> `console.log()` is the command to print something to the developer console in your browser. You can use this to print the results from any of the following articles and exercises to the console. We encourage you to code along with all of the examples in this and future lessons. + +Another way to include JavaScript in a webpage is through an external script. This is very similar to linking external CSS docs to your website. + +```html + +``` + +JavaScript files have the extension `.js` similar to `.css` for stylesheets. External JavaScript files are used for more complex scripts. + +# --question-- + +## --text-- + +Which statement accurately describes how to include JavaScript in an HTML document? + +## --answers-- + +JavaScript can only be included internally within a `