Skip to content

Conversation

Mahdi209
Copy link

@Mahdi209 Mahdi209 commented Feb 7, 2024

Mohammad Mahdi completed the task

@Mahdi209
Copy link
Author

Mahdi209 commented Feb 8, 2024

task two is done

Copy link

@AthraaMosawi AthraaMosawi left a 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}`);

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.

Copy link

@AthraaMosawi AthraaMosawi left a 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);

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}`);

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}."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants