Skip to content

task is solved#18

Open
Mahdi209 wants to merge 2 commits into
TheCodePeople:mainfrom
Mahdi209:main
Open

task is solved#18
Mahdi209 wants to merge 2 commits into
TheCodePeople:mainfrom
Mahdi209:main

Conversation

@Mahdi209
Copy link
Copy Markdown

@Mahdi209 Mahdi209 commented Feb 7, 2024

Mohammad Mahdi completed the task

@Mahdi209
Copy link
Copy Markdown
Author

Mahdi209 commented Feb 8, 2024

task two is done

Copy link
Copy Markdown

@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.

Comment thread variables.js Outdated
// 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}`);
Copy link
Copy Markdown

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
Copy Markdown

@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);
Copy link
Copy Markdown

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)

Comment thread variables.js
// 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}`);
Copy link
Copy Markdown

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