8000 show try it exercise on web only · gramos-encora/learn-javascript@1550af2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1550af2

Browse files
committed
show try it exercise on web only
1 parent b3433a9 commit 1550af2

20 files changed

+51
-11
lines changed

en/exercises/concatenation.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const icon = "👋";
3939
### 💡 Hints:
4040

4141
- Visit the [concatenation](../strings/concat.md) chapter of strings for more info about string concatenation.
42-
42+
Console output: {{ output.name }}
43+
{% if output.name == "website" %}
4344
{% aceeditor compilerTitle="Try it!" %}
44-
{% endaceeditor %}
45+
{% endaceeditor %}
46+
{% endif %}

en/exercises/conditional-statements.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ Conditional logic is vital in programming as it makes sure that the program work
2424

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

27+
{% if output.name == "website" %}
2728
{% aceeditor compilerTitle="Try it!" %}
28-
{% endaceeditor %}
29+
{% endaceeditor %}
30+
{% endif %}

en/exercises/console.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,7 @@ console.log(age === 50);
5858
* Visit the [variable](../basics/variables.md) chapter to understand more about variables.
5959
* Visit the [operators](https://javascript.sumankunwar.com.np/en/numbers/operators.html) page to know the possible operators you can use.
6060

61+
{% if output.name == "website" %}
6162
{% aceeditor compilerTitle="Try it!" %}
62-
{% endaceeditor %}
63+
{% endaceeditor %}
64+
{% endif %}

en/exercises/constants.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,7 @@ const VERSION = "1.2";
3535

3636
- 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. 
3737

38+
{% if output.name == "website" %}
3839
{% aceeditor compilerTitle="Try it!" %}
39-
{% endaceeditor %}
40+
{% endaceeditor %}
41+
{% endif %}

en/exercises/fizzbuzz-problem.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ The _FizzBuzz_ problem is one of the commonly asked questions, here one has to p
4343

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

46+
{% if output.name == "website" %}
4647
{% aceeditor compilerTitle="Try it!" %}
47-
{% endaceeditor %}
48+
{% endaceeditor %}
49+
{% endif %}

en/exercises/functions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ A function is a block of code designed to perform a specific task and executed w
1919

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

22+
{% if output.name == "website" %}
2223
{% aceeditor compilerTitle="Try it!" %}
23-
{% endaceeditor %}
24+
{% endaceeditor %}
25+
{% endif %}

en/exercises/get-the-titles.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ const books = [
2929

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

32+
{% if output.name == "website" %}
3233
{% aceeditor compilerTitle="Try it!" %}
33-
{% endaceeditor %}
34+
{% endaceeditor %}
35+
{% endif %}

en/exercises/multiplication.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ Here, we stored the product of `3 * 2` into a `resultingValue` variable.
2525

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

28+
{% if output.name == "website" %}
2829
{% aceeditor compilerTitle="Try it!" %}
29-
{% endaceeditor %}
30+
{% endaceeditor %}
31+
{% endif %}

en/exercises/objects.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,7 @@ let family = {
4646
* You can get `luckyNumbers` from each person object inside the family object.
4747
* Once you get each array just loop over it adding every element and then add each sum of the 3 family members.
4848

49+
{% if output.name == "website" %}
4950
{% aceeditor compilerTitle="Try it!" %}
50-
{% endaceeditor %}
51+
{% endaceeditor %}
52+
{% endif %}

en/exercises/user-input-variables.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ In JavaScript, we can take input from users and use it as a variable. One doesn'
1616
* You will need to make sure that the string value is converted into an integer for calculations. 
1717
* Visit the [Basic Operators](../numbers/operators.md) chapter for the type conversion of `string` to `int`. 
1818

19+
{% if output.name == "website" %}
1920
{% aceeditor compilerTitle="Try it!" %}
20-
{% endaceeditor %}
21+
{% endaceeditor %}
22+
{% endif %}

0 commit comments

Comments
 (0)
0