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

support javascript interpreter #229

Merged
merged 1 commit into from
Aug 13, 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
3 changes: 2 additions & 1 deletion book.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"favicon-custom",
"chapter-fold",
"hide-published-with",
"edit-link"
"edit-link",
"ace-editor"
],
"pdf": {
"pageNumbers": true,
Expand Down
3 changes: 3 additions & 0 deletions en/exercises/concatenation.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ const icon = "👋";
### 💡 Hints:

- Visit the [concatenation](../strings/concat.md) chapter of strings for more info about string concatenation.

{% aceeditor compilerTitle="Try it!" %}
{% endaceeditor %}
3 changes: 3 additions & 0 deletions en/exercises/conditional-statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ Conditional logic is vital in programming as it makes sure that the program work
### 💡 Hints:

- Visit the [conditional logic](../conditional/) chapter to understand how to use conditional logic and conditional statements.

{% aceeditor compilerTitle="Try it!" %}
{% endaceeditor %}
3 changes: 3 additions & 0 deletions en/exercises/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ console.log(age === 50);

* Visit the [variable](../basics/variables.md) chapter to understand more about variables.
* Visit the [operators](https://javascript.sumankunwar.com.np/en/numbers/operators.html) page to know the possible operators you can use.

{% aceeditor compilerTitle="Try it!" %}
{% endaceeditor %}
3 changes: 3 additions & 0 deletions en/exercises/constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ const VERSION = "1.2";
### 💡 Hints:

- Visit the [Variables](../basics/variables.md) chapter for more info about const and also look for "_TypeError assignment to constant variable_" in search engines to learn a fix. 

{% aceeditor compilerTitle="Try it!" %}
{% endaceeditor %}
3 changes: 3 additions & 0 deletions en/exercises/fizzbuzz-problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ The _FizzBuzz_ problem is one of the commonly asked questions, here one has to p
### 💡 Hints:

* Visit the [loops](../loops/) chapter to understand how the loop works.

{% aceeditor compilerTitle="Try it!" %}
{% endaceeditor %}
3 changes: 3 additions & 0 deletions en/exercises/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ A function is a block of code designed to perform a specific task and executed w
### 💡 Hints:

- Visit the [functions](../functions/) chapter to understand functions and how to create them.

{% aceeditor compilerTitle="Try it!" %}
{% endaceeditor %}
2 changes: 2 additions & 0 deletions en/exercises/get-the-titles.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ const books = [

* Visit the [arrays](../arrays/) and [objects](../objects/) chapter to understand how the array and object work.

{% aceeditor compilerTitle="Try it!" %}
{% endaceeditor %}
3 changes: 3 additions & 0 deletions en/exercises/multiplication.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ Here, we stored the product of `3 * 2` into a `resultingValue` variable.
### 💡 Hints:

- Visit the [Basic Operators](../numbers/operators.md) chapter to understand the mathematical operations.

{% aceeditor compilerTitle="Try it!" %}
{% endaceeditor %}
3 changes: 3 additions & 0 deletions en/exercises/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ let family = {
* Visit the [objects](../objects/) chapter to understand how the object work.
* You can get `luckyNumbers` from each person object inside the family object.
* Once you get each array just loop over it adding every element and then add each sum of the 3 family members.

{% aceeditor compilerTitle="Try it!" %}
{% endaceeditor %}
3 changes: 3 additions & 0 deletions en/exercises/user-input-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ In JavaScript, we can take input from users and use it as a variable. One doesn'
* The content of a variable is determined by the user's inputs. The `prompt()` method saves the input value as a string.
* You will need to make sure that the string value is converted into an integer for calculations. 
* Visit the [Basic Operators](../numbers/operators.md) chapter for the type conversion of `string` to `int`. 

{% aceeditor compilerTitle="Try it!" %}
{% endaceeditor %}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
"devDependencies": {
"@honkit/honkit-plugin-ga": "^1.0.1",
"cz-conventional-changelog": "^3.3.0",
"gitbook-plugin-ace-editor": "github:sumn2u/gitbook-plugin-ace-editor",
"gitbook-plugin-chapter-fold": "^0.0.4",
"gitbook-plugin-edit-link": "^2.0.2",
"gitbook-plugin-exercises": "^3.0.0",
"gitbook-plugin-favicon-custom": "^1.0.0",
"gitbook-plugin-hide-published-with": "0.0.1",
"gitbook-plugin-hints": "^1.0.2",
"gitbook-plugin-intopic-toc": "^1.0.6",
"gitbook-plugin-sharing": "https://github.com/sumn2u/plugin-sharing.git",
"gitbook-plugin-sidebar-ad": "https://github.com/sumn2u/gitbook-plugin-sidebar-ad.git",
"gitbook-plugin-sharing": "github:sumn2u/plugin-sharing",
"gitbook-plugin-sidebar-ad": "github:sumn2u/gitbook-plugin-sidebar-ad",
"gitbook-plugin-sitemap": "^1.2.0",
"gitbook-plugin-theme-creative": "https://github.com/sumn2u/gitbook-plugin-theme-creative.git",
"gitbook-plugin-theme-creative": "github:sumn2u/gitbook-plugin-theme-creative",
"honkit": "^4.0.4",
"honkit-plugin-i18nsettings": "^1.0.0"
},
Expand Down
Loading