Skip to content

I finished what I could from the tasks - #16

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

I finished what I could from the tasks#16
JaeMaaroufi wants to merge 1 commit into
TheCodePeople:mainfrom
JaeMaaroufi:main

Conversation

@JaeMaaroufi

Copy link
Copy Markdown

No description provided.

…sk full while 4th and 5th not..). And for Switch statement I finisehd both tasks successfully
Comment thread ifStatement.js
let userName = "Baneen"
let role = "Admin"
let enteredUsername = prompt("What is your name?");
userName = enteredUsername;

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.

Why would you reassign the userName to enteredUsername? The purpose of this is to compare the two, so when you assign them to each other, the comparison becomes useless.

Comment thread ifStatement.js
// TODO: ADD YOUR CODE BELOW
let enteredNumber = prompt("Add a number and I'll tell you if it's positive, negative or zero")

enteredNumber = (enteredNumber)

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 mean: enteredNumber = parsInt(enteredNumber)?

Comment thread ifStatement.js
************************************************************************************************/
// TODO: ADD YOUR CODE BELOW

userAge = prompt("What's your age?")

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.

Please use the variables keyword: let or const when you want to define a variable:
const userAge, let userAge

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