Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy main #6

Merged
merged 8 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 2 additions & 23 deletions client/i18n/locales/english/intro.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,29 +297,8 @@
"Complete these 5 JavaScript projects to earn the JavaScript Algorithms and Data Structures certification."
]
},
"module-3": {
"title": "Module-3 : Introduction to Basic Javascript ",
"intro": [
"This is it — time to put your new JavaScript skills to work. These projects are similar to the algorithm scripting challenges you've done before – just much more difficult.",
"This is it — time to put your new JavaScript skills to work. These projects are similar to the algorithm scripting challenges you've done before – just much more difficult."
]
},
"module-ai-4": {
"title": "Module-ai-4",
"intro": [
"This is it — time to put your new JavaScript skills to work. These projects are similar to the algorithm scripting challenges you've done before – just much more difficult.",
"This is it — time to put your new JavaScript skills to work. These projects are similar to the algorithm scripting challenges you've done before – just much more difficult."
]
},
"module4": {
"title": "Module4",
"intro": [
"This is it — time to put your new JavaScript skills to work. These projects are similar to the algorithm scripting challenges you've done before – just much more difficult.",
"This is it — time to put your new JavaScript skills to work. These projects are similar to the algorithm scripting challenges you've done before – just much more difficult."
]
},
"ng-test": {
"title": "Ng Test",
"javascript-with-ai": {
"title": "Javascript with AI",
"intro": [
"This is it — time to put your new JavaScript skills to work. These projects are similar to the algorithm scripting challenges you've done before – just much more difficult.",
"This is it — time to put your new JavaScript skills to work. These projects are similar to the algorithm scripting challenges you've done before – just much more difficult."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Introduction to the module-ai-4
block: module-ai-4
title: Introduction to the javascript-with-ai
block: javascript-with-ai
superBlock: javascript-algorithms-and-data-structures
---

## Introduction to the module-ai-4
## Introduction to the javascript-with-ai

This is a test for the new project-based curriculum.

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 6 additions & 6 deletions curriculum/challenges/_meta/basic-javascript/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
"id": "66352b2418c108072d0a062e",
"title": "From Flowcharts to JavaScript"
},
{
"id": "672dc6f4f053e1c7257775fd",
"title": "Comment Your JavaScript Code"
},
{
"id": "661bc7a2b575475da9a67513",
"title": "Variable Declaration"
Expand Down Expand Up @@ -435,12 +439,8 @@
"title": "Print Pattern from an Array"
},
{
"id": "671ccdd08c54ac7f2cfc9f18",
"title": "Storing values with the Assignment Operator"
},
{
"id": "671cce54b4f158821ef77b2c",
"title": "Declare JavaScript Variables"
"id": "672dc376fe0cf0bee653bbfb",
"title": "Reflection"
}
]
}
24 changes: 24 additions & 0 deletions curriculum/challenges/_meta/javascript-with-ai/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Javascript with AI",
"isUpcomingChange": true,
"usesMultifileEditor": false,
"hasEditableBoundaries": false,
"dashedName": "javascript-with-ai",
"order": 42,
"superBlock": "javascript-algorithms-and-data-structures",
"challengeOrder": [
{
"id": "66f2988e5ce47a89f2c3c012",
"title": "Deepen Insight into Variables"
},
{
"id": "66ff9497a20c5b37f678bf8d",
"title": "Advance Understanding of Arrays"
},
{
"id": "66ff96f751c97b3cd7e7a44b",
"title": "Advanced Exploration of Loop Structures"
}
],
"helpCategory": "JavaScript"
}
56 changes: 0 additions & 56 deletions curriculum/challenges/_meta/module-3/meta.json

This file was deleted.

11 changes: 0 additions & 11 deletions curriculum/challenges/_meta/module-ai-4/meta.json

This file was deleted.

20 changes: 0 additions & 20 deletions curriculum/challenges/_meta/module4/meta.json

This file was deleted.

11 changes: 0 additions & 11 deletions curriculum/challenges/_meta/ng-test/meta.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
id: 672dc6f4f053e1c7257775fd
title: Comment Your JavaScript Code
challengeType: 1
dashedName: comment-your-javascript-code
---

# --description--

Comments are lines of code that JavaScript will intentionally ignore. Comments are a great way to leave notes to yourself and to other people who will later need to figure out what that code does.

There are two ways to write comments in JavaScript:

Using `//` will tell JavaScript to ignore the remainder of the text on the current line. This is an in-line comment:

```js
// This is an in-line comment.
```

You can make a multi-line comment beginning with `/*` and ending with `*/`. This is a multi-line comment:

```js
/* This is a
multi-line comment */
```

**NOTE:** As you write code, you should regularly add comments to clarify the function of parts of your code. Good commenting can help communicate the intent of your code—both for others *and* for your future self.

<h3>Hinglish</h3>
Comments yaane ki code ki lines jo JavaScript ko jaanboojhkar ignore karni hai. Comments khud ke liye aur dusre logon ke liye notes chhodne ka ek achha tareeka hai jo baad mein uss code ka kya kaam hai woh samajhne ke liye upyogi hota hai.

JavaScript mein comments likhne ke do tareeke hote hain:

`//` ka istemal karke aap JavaScript ko current line par baki text ko ignore karne ke liye keh sakte hain. Ye ek in-line comment hai:

```js
// Ye ek in-line comment hai.
```

Aap `/*` se shuru karke aur `*/` se samapt karke multi-line comment bana sakte hain. Ye ek multi-line comment hai:

```js
/* Ye ek
multi-line comment hai */
```

**NOTE:** Jab aap code likhte hain, aapko apne code ke hisson ke function ko spasht karne ke liye regular roop se comments add karte rahna chahiye. Achhi commenting aapke code ke maksad ko samjhaane mein madad kar sakti hai—dusron ke liye *aur* aapke liye bhi.

# --instructions--

Try creating one of each type of comment.

# --hints--

You should create a `//` style comment that contains at least five letters.

```js
assert(code.match(/(\/\/)...../g));
```

You should create a `/* */` style comment that contains at least five letters.

```js
assert(code.match(/(\/\*)([^\/]{5,})(?=\*\/)/gm));
```

# --seed--

## --seed-contents--

```js

```

# --solutions--

```js
// Fake Comment
/* Another Comment */
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
id: 672dc376fe0cf0bee653bbfb
title: Reflection
challengeType: 19
dashedName: reflection
---

# --description--

This question will help you reflect youre learning of Module 3

# --question--

## --text--

Have you completed all the challenges?

<a href='http://34.238.60.161/mod/questionnaire/view.php?id=852' target="_blank" rel="noopener noreferrer nofollow">Click this link before completing the challenge </a>

## --answers--

Yes

---

No

## --video-solution--

1
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
id: 66ff9497a20c5b37f678bf8d
videoId: 2k-ym4z8Q9M?si=RzS_o2I6tbWe2vyg
title: Advance Understanding of Arrays
challengeType: 11
dashedName: advance-understanding-of-arrays

---

# --description--

You've asked some amazing questions so far! :clap::clap:
Now, let's take a deeper dive into the concept of arrays. This challenge is all about exploring the intricacies of arrays and enhancing your knowledge to a whole new level. Please read the document linked below and see what additional insights you can gather to deepen your understanding of arrays.

**Instructions:**

1. Explore the [Document](https://docs.google.com/document/d/1k9BWRBWBUiNjUnZ_5jEz4MaGJ4dz53xQ6ApszhJd0RI/edit) : Dive into the linked document and absorb the insights it offers about arrays. Pay close attention to the examples and explanations that will help you better understand how to use arrays in your code

2. Implement Your Learning: After reading, take what you've learned and apply it on your own. Try out different array methods, experiment with their properties, and see how they can be used in practical scenarios.

3. Share Your Insights: Once you've implemented your learning, submit your final thoughts and understanding of arrays using the provided link. Your reflections and experiences will help solidify your mastery of this powerful tool.

# --question--

## --text--

Which of the following methods can be used to add an element to the end of an array in JavaScript?

## --answers--

`push()`

---

`pop()`

---

`shift()`

---

`unshift()`

## --video-solution--

1
Loading
Loading