-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.json
47 lines (47 loc) · 1.82 KB
/
db.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"tasks": [
{
"id": 1,
"title": "Hello my favorite world!",
"description": "The task is to write a simple program that displays the text Hello, World! on the screen. This is a classic task that is often the starting point for learning programming. It helps to understand the basics of syntax of the chosen language, learn how to work with the output function and experience the first success in writing code.",
"instructions": [
"Select a programming language: JavaScript or Python;",
"Write your solution in the code editor window;",
"Click on the Run button and check the result."
],
"hints": [
"Make sure that the syntax of your code matches the programming language you have chosen;",
"Use the console.log() function to display a string on the screen in JavaScript;",
"To print a string to the screen in Python, use the print() function;",
"The text should be exactly as follows: Hello, World! The letter case, comma and exclamation mark must match;",
"Use single quotes."
],
"solutions": {
"javascript": {
"code": "console.log('Hello, World!')",
"expectedOutput": "Hello, World!\n",
"successResponse": {
"status": "Success",
"output": "Hello, World!\n"
},
"errorResponse": {
"status": "Error",
"error": "SyntaxError: Unexpected token"
}
},
"python": {
"code": "print('Hello, World!')",
"expectedOutput": "Hello, World!\n",
"successResponse": {
"status": "Success",
"output": "Hello, World!\n"
},
"errorResponse": {
"status": "Error",
"error": "SyntaxError: Invalid syntax"
}
}
}
}
]
}