fix(curriculum): remove before/after-user-code from 5 basic javascript challenges (#66482)

This commit is contained in:
Sem Bauke
2026-03-16 10:08:30 +01:00
committed by GitHub
parent a7e5ad3287
commit 171d12afa4
5 changed files with 0 additions and 53 deletions

View File

@@ -111,12 +111,6 @@ myMusic.forEach(object => {
# --seed--
## --after-user-code--
```js
(function(x){ if (Array.isArray(x)) { return JSON.stringify(x); } return "myMusic is not an array"})(myMusic);
```
## --seed-contents--
```js

View File

@@ -75,17 +75,6 @@ assert.deepStrictEqual(myStorage, expectedMyStorage);
# --seed--
## --after-user-code--
```js
(function(x) {
if(typeof x != 'undefined') {
return "gloveBoxContents = " + x;
}
return "gloveBoxContents is undefined";
})(gloveBoxContents);
```
## --seed-contents--
```js

View File

@@ -58,17 +58,6 @@ assert(/=\s*myPlants\[1\].list\[1\]/.test(__helpers.removeJSComments(code)));
# --seed--
## --after-user-code--
```js
(function(x) {
if(typeof x != 'undefined') {
return "secondTree = " + x;
}
return "secondTree is undefined";
})(secondTree);
```
## --seed-contents--
```js

View File

@@ -40,25 +40,6 @@ assert(__helpers.removeJSComments(code).match(/myStr\s*\+=\s*someAdjective\s*/).
# --seed--
## --after-user-code--
```js
(function(){
var output = [];
if(typeof someAdjective === 'string') {
output.push('someAdjective = "' + someAdjective + '"');
} else {
output.push('someAdjective is not a string');
}
if(typeof myStr === 'string') {
output.push('myStr = "' + myStr + '"');
} else {
output.push('myStr is not a string');
}
return output.join('\n');
})();
```
## --seed-contents--
```js

View File

@@ -50,12 +50,6 @@ assert(/myData=myArray\[2\]\[1\]/.test(__helpers.removeWhiteSpace(__helpers.remo
# --seed--
## --after-user-code--
```js
if(typeof myArray !== "undefined"){(function(){return "myData: " + myData + " myArray: " + JSON.stringify(myArray);})();}
```
## --seed-contents--
```js