0
1
00:00:01,590 --> 00:00:06,480
OK, so we've got the app sort of working now, we can type in our answer and it says correct or incorrect,
1

2
00:00:06,480 --> 00:00:07,420
but that's not great.
2

3
00:00:07,440 --> 00:00:08,810
We want to be more informative.
3

4
00:00:08,820 --> 00:00:10,770
We want to say, you know, incorrect.
4

5
00:00:10,770 --> 00:00:15,000
Seven plus zero is seven, not twenty three, you moron, or something like that.
5

6
00:00:15,000 --> 00:00:15,280
Right.
6

7
00:00:15,570 --> 00:00:17,000
So how do we do that?
7

8
00:00:17,040 --> 00:00:18,330
That's we're going to look at in this video.
8

9
00:00:18,330 --> 00:00:19,110
Pretty simple.
9

10
00:00:19,450 --> 00:00:21,870
And you just come up to our ad correct function.
10

11
00:00:21,870 --> 00:00:27,300
And here's where our little, you know, output answer, correct or incorrect message is.
11

12
00:00:27,570 --> 00:00:32,610
And what we could do is slap a space in there and then just concatenate whatever else we want to put
12

13
00:00:32,610 --> 00:00:33,000
in here.
13

14
00:00:33,000 --> 00:00:38,040
So if we want to say correct, let's go number one.
14

15
00:00:38,340 --> 00:00:42,090
Now, number one is an integer and correct is a string.
15

16
00:00:42,240 --> 00:00:48,630
And you can't concatenate smooshed together a string and an integer because what you're saying here
16

17
00:00:48,630 --> 00:00:49,890
is what is correct.
17

18
00:00:49,890 --> 00:00:56,340
Plus four, it wants to do math that then and you can't do that.
18

19
00:00:56,350 --> 00:01:01,890
So what we have to do is turn this into a string so we could just wrap this in the string function.
19

20
00:01:03,350 --> 00:01:09,560
And that should work, so concatenate again and let's put a space and then concatenate it again and concatenated
20

21
00:01:09,560 --> 00:01:10,730
just means smooshed together.
21

22
00:01:10,760 --> 00:01:15,710
That's the official term smosh just putting things together.
22

23
00:01:15,920 --> 00:01:22,070
So then we need to do again, string number two and then concatenate.
23

24
00:01:22,340 --> 00:01:30,460
So now one plus number two, let's go equals and then concatenate again start and then correct.
24

25
00:01:30,800 --> 00:01:33,520
And we're getting correct from just right here.
25

26
00:01:33,530 --> 00:01:34,640
That's our correct answer.
26

27
00:01:34,640 --> 00:01:34,970
Right.
27

28
00:01:35,240 --> 00:01:40,550
So OK, let's go ahead and save this and run it to make sure I didn't screw that up because I tend to
28

29
00:01:40,550 --> 00:01:43,220
make typos a lot.
29

30
00:01:43,760 --> 00:01:45,380
So add six plus three.
30

31
00:01:45,380 --> 00:01:46,790
That equals nine.
31

32
00:01:47,150 --> 00:01:47,600
Correct.
32

33
00:01:47,600 --> 00:01:49,760
Six plus three equals nine.
33

34
00:01:49,880 --> 00:01:51,290
OK, so that worked.
34

35
00:01:51,320 --> 00:01:55,670
So now we just need to do the same thing for the incorrect ones.
35

36
00:01:55,730 --> 00:02:00,410
Open space and let's go astar number one.
36

37
00:02:02,060 --> 00:02:02,870
Plus.
37

38
00:02:04,950 --> 00:02:08,490
Plus, again, stars are known to.
38

39
00:02:11,060 --> 00:02:17,600
So what do we want to be here, incorrect number one, plus number two, let's go equals.
39

40
00:02:19,710 --> 00:02:21,150
And again, let's go.
40

41
00:02:25,660 --> 00:02:33,160
But let's also concatenate something else and let's go not well, let's go comma not.
41

42
00:02:34,110 --> 00:02:39,570
And then our answer, which is, let's see, that would be.
42

43
00:02:41,040 --> 00:02:42,140
Where is our answer?
43

44
00:02:46,790 --> 00:02:53,570
Our answer box ad answer, so let's see if we can get that.
44

45
00:02:54,830 --> 00:02:58,790
So let's go at answer dot, get in, that's a function.
45

46
00:02:59,090 --> 00:03:06,200
OK, so let's say that you probably should not write, you idiot, afterwards.
46

47
00:03:08,990 --> 00:03:16,940
All right, so add 10 plus eight equals 30 to incorrect 10 plus eight equals 18, not thirty two, you
47

48
00:03:16,940 --> 00:03:17,340
idiot.
48

49
00:03:17,780 --> 00:03:19,310
There's space there you put, you idiot.
49

50
00:03:20,490 --> 00:03:21,030
Don't do that.
50

51
00:03:21,150 --> 00:03:22,560
OK, so now that works.
51

52
00:03:24,150 --> 00:03:30,900
And we're good to go there, so now the only thing left to do is kind of flash up new numbers onto the
52

53
00:03:30,900 --> 00:03:31,400
screen.
53

54
00:03:32,280 --> 00:03:36,120
And also, I should mention, let's restart this one more time.
54

55
00:03:36,970 --> 00:03:43,090
How we set this up is to have this little line here into your answer above so that when we do enter
55

56
00:03:43,090 --> 00:03:50,170
our answer, you know, this line is already there and we can then update it with that config thing.
56

57
00:03:50,800 --> 00:03:53,480
Boom, it changes if you don't want that line there.
57

58
00:03:53,680 --> 00:03:55,560
We still need something there.
58

59
00:03:55,750 --> 00:03:59,920
What you could do is just come down here where that thing is.
59

60
00:03:59,920 --> 00:04:07,360
And instead of let's see where to go right here, correct or incorrect message here, it says, enter
60

61
00:04:07,360 --> 00:04:08,590
your answer above.
61

62
00:04:08,920 --> 00:04:11,780
You could just put no text there at all.
62

63
00:04:12,040 --> 00:04:16,150
So if we save this interactive, maybe that's more your style.
63

64
00:04:16,150 --> 00:04:16,660
I don't know.
64

65
00:04:17,060 --> 00:04:17,980
Doesn't really matter.
65

66
00:04:17,980 --> 00:04:19,750
But now that's gone.
66

67
00:04:19,750 --> 00:04:23,230
But if we type in an answer, the label is still there.
67

68
00:04:23,230 --> 00:04:28,390
There's just nothing in it so that when we click hit, we can still update it with its config property.
68

69
00:04:29,590 --> 00:04:34,030
But maybe that's a little a little cleaner looking or something.
69

70
00:04:34,030 --> 00:04:35,350
So you can definitely do that if you want.
70

71
00:04:35,350 --> 00:04:36,250
I think I'll leave like that.
71

72
00:04:36,250 --> 00:04:37,170
I kind of like that better.
72

73
00:04:37,390 --> 00:04:37,710
So.
73

74
00:04:37,720 --> 00:04:38,020
All right.
74

75
00:04:38,020 --> 00:04:38,770
That's all for this video.
75

76
00:04:38,770 --> 00:04:43,240
In the next video, we'll start to clean up these numbers at the top and generate new ones every time
76

77
00:04:43,240 --> 00:04:48,700
we click the button and also delete whatever was actually written in this box.
77

78
00:04:48,910 --> 00:04:50,320
And we'll do that in the next video.
