Hello sir, here is the link for my attempted solution, A Pen by Cleo (codepen.io) . Eagerly waiting for your assessment thanks .
Nice work, @Cleo_Shepsut!
I like how you went the extra mile with the different media queries to make it look good with all screen sizes.
Feature photo: Instead of using 10px padding on all sides and then moving it left and up, it would be better to just use
paddingright: 10px;
paddingbottom: 10px;
I hope that helps.
Michael
Yeah sir, padding adjusted as you recommended. Thanks.
Nice improvements. The code looks cleaner now.
Hello sir, I am really sad, I canâ€™t imagine that I canâ€™t get even the first questions of all the exercises on the first topic of JavaScript right , no matter how hard I try. I really feel discourage. What should I do?
let finalResult;
let evenOddResult;
// Add your code here
const A =2;
const B= 6 ;
const C= 7 ;
const D= 1;
const A+B =E= 8;
const CD = F = 6;
E=8; F=6;
const finalResult= E*F;
const evenOddResult= 48 % 2
Still canâ€™t get it right , why?
Learning your first programming language is hard. But with the MDN learning material and a bit of help from me, Iâ€™m sure you will start understanding the topic and will have a lot of â€śAha! momentsâ€ť.
Letâ€™s look at your code:
When we want to assign a value to a variable itâ€™s always of the form
const (or let) <name of the variable> = <whatever we want to calculate>;
The first four line where you assign the single values are fine. In the next line we want to assign the sum of A
and B
to E
. When we look at the pseudo code from above this should look like this:
const E = A + B;
This will save the value 8 into E
, because A
has the value 2
and B
has the value 6
. Now you can do the same for F
just replace the plus with minus and change the variables on the right side to C
and D
.
The calculation of finalResult
is correct and for evenOddResult
if you replace the number 48
with finalResult
itâ€™s also correct. (Because the value 48
is saved in this variable.)
I hope that helps you understanding the topic a bit better.
By the way: When you copy code into a post here you should use three backticks above an below the code to prevent it from getting formatted:
```
Your code
goes here
```
See you,
Michael
hello sir, after your explanation, it seems like I am understanding the questions better and doing what is required correctly. Please evaluate my work. Thanks.
maths task 1 A Pen by Cleo (codepen.io)
maths task 2 A Pen by Cleo (codepen.io)
maths task 3 A Pen by Cleo (codepen.io)
Wow! Yeah, it seems you now understand the topic much better.
These are all correct.
In task 2 you could also use the short form because result
is on both sides:
/* long version (correct) */
result = result * result2;
/* short version (also correct) */
result *= result2;
The short version does two things:
 Multiply the two values
 Save the result into the left variable
Both versions are correct. Itâ€™s just another way of writing it.
Hello sir, I have used the other method you suggested, and it works. Thanks
Hello sir , here are my attempts for, test your skills : strings
task 1 A Pen by Cleo (codepen.io)
task 2 A Pen by Cleo (codepen.io)
task 3 A Pen by Cleo (codepen.io)
task 4 A Pen by Cleo (codepen.io)
Eagerly waiting for your evaluation. Thanks
Nice work, @Cleo_Shepsut!
Here are some remarks:
 Task 1: Correct.
 Task 2: Partly correct.

index
should store the index of thesubstring
.  Instead of the literal number
33
in theslice()
method, the value should be calculated fromindex
, the length of the substring and1
(for the dot at the end).

 Task 3: Correct. You can merge line 9 and 10 by directly assigning to
fixedQuote
(without usingcapitalized
).  Task 4: Partly correct.
 When weâ€™re using placeholders like
${a}
, we need to replace the single quotes ('
) of the string with backticks (`
). This is called a template literal and will make sure the placeholders are getting replaced with the actual values of the variables.  Your first placeholder should just contain the variable name like this:
${theorem}
.
 When weâ€™re using placeholders like
Feel free to ask if my explanations arenâ€™t clear enough
See you,
Michael
Hello sir, I have done the corrections, and I am waiting for your evaluation. Thanks
Great improvements!
Everything is correct now.
Hello sir, here are my attempts for test your skill: Arrays
task 1 A Pen by Cleo (codepen.io)
task 2 A Pen by Cleo (codepen.io)
task 3 A Pen by Cleo (codepen.io)
task 4 A Pen by Cleo (codepen.io)
Eagerly waiting for your evaluation and remarks.
Nice work!
Here are my comments:
 Task 1: Correct.
 Task 2: Almost Correct. To being independent from the array length, you should work with
arrayLength
to find thelastItem
.  Task 3: Correct. Since we need the index inside the loop, we could also use
myArray.forEach(function(element, index) {
...
});
to have access to the index
.
 Task 4: Correct.
See you,
Michael
Hello sir, i have done the correction for task 2 and used your suggested method for task 3 . Eagerly waiting for your remarks.
Great improvements!
That was exactly what I meant.