Skip to content

I done my task if and switch - #11

Open
mohamedali0122 wants to merge 1 commit into
TheCodePeople:mainfrom
mohamedali0122:main
Open

I done my task if and switch#11
mohamedali0122 wants to merge 1 commit into
TheCodePeople:mainfrom
mohamedali0122:main

Conversation

@mohamedali0122

Copy link
Copy Markdown

Hello, I finished the assignment

@ZehraaMA ZehraaMA left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GREAT JOB!

Comment thread ifStatement.js
const userName ="mohamed";
let userTest = prompt("enter user name");
const role ="Admin";
if(userName.toLowerCase() ===userTest && role.toLowerCase() === "admin" ){

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to lowercase the user input userText, not the constant name userName
No need to lowercase the role

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