Skip to content

Commit

Permalink
Re-checked format.
Browse files Browse the repository at this point in the history
  • Loading branch information
zainabch123 committed Apr 22, 2024
1 parent 571cc2a commit b4c1a7d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/string-conditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ console.log(answerThree)

const STR_FIVE = 'Alexandra' // eslint-disable-line no-unused-vars

const STR_FIVE_lowerCase = STR_FIVE.toLowerCase();
console.log(STR_FIVE_lowerCase);
let answerFour = false;
if (STR_FIVE_lowerCase.charAt(0) == STR_FIVE_lowerCase.charAt(8)) {
answerFour = true;
const StrFiveLowerCase = STR_FIVE.toLowerCase()
console.log(StrFiveLowerCase)
let answerFour = false
if (StrFiveLowerCase.charAt(0) === StrFiveLowerCase.charAt(8)) {
answerFour = true
} else {
answerFour = false;
answerFour = false
}
console.log(answerFour)

Expand All @@ -51,10 +51,10 @@ console.log(answerFour)

const STR_SIX = 'Joanna' // eslint-disable-line no-unused-vars

STR_SIX_lowerCase = STR_SIX.toLowerCase();
const StrSixLowerCase = STR_SIX.toLowerCase()

let answerFive = true
if (STR_SIX_lowerCase.charAt(0) === STR_SIX_lowerCase.charAt(5)) {
if (StrSixLowerCase.charAt(0) === StrSixLowerCase.charAt(5)) {
answerFive = true
} else {
answerFive = false
Expand Down

0 comments on commit b4c1a7d

Please sign in to comment.