-
Notifications
You must be signed in to change notification settings - Fork 23
task is solved #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
task is solved #18
Conversation
task two is done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done M.Mahdi, great job.
variables.js
Outdated
@@ -48,3 +56,6 @@ Steps: | |||
- Print the final message to the console, including the personName in uppercase in this format `Dear personName_VALUE, here's your message: finalMsg_VALUE.`. | |||
*******************************************************************************/ | |||
// TODO: ADD YOUR CODE BELOW | |||
let msg=prompt("enter a message:") | |||
let finalMsg = `${msg} And btw, Why are you happy?` | |||
console.log(`Dear ${personName.toUpperCase()}, ${finalMsg}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you missed a part from the printed message which is: "here's your message:", the rest is perfect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job Mohammed Mahdi!
// - Check if isHappy value is true using the logical NOT operator. Log the result to the console. | ||
// TODO: ADD YOUR CODE BELOW | ||
|
||
console.log(isHappy); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use logical NOT operator in your console log sentence to check if isHappy. Here's the correct version of your code:
console.log(!isHappy)
@@ -48,3 +56,6 @@ Steps: | |||
- Print the final message to the console, including the personName in uppercase in this format `Dear personName_VALUE, here's your message: finalMsg_VALUE.`. | |||
*******************************************************************************/ | |||
// TODO: ADD YOUR CODE BELOW | |||
let msg=prompt("enter a message:") | |||
let finalMsg = `${msg} And btw, Why are you happy?` | |||
console.log(`Dear ${personName.toUpperCase()}, ${finalMsg}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your final printed message should be like: "Dear ${personName.toUpperCase()}, here's your message: ${finalMsg}.
"
Mohammad Mahdi completed the task