Skip to content

Commit e579fb2

Browse files
committed
try to codeing uppercase or lowercase
1 parent 045d193 commit e579fb2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

case-convert.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
const userInput = 'blackPinK';
1+
const userName = 'Farhana';
2+
const userInput = 'farhaNa';
3+
if(userName.toLowerCase() == userInput.toLowerCase()){
4+
console.log(userInput);
5+
}
6+
7+
/* const userInput = 'blackPinK';
28
const namePro ='blackpink';
39
// console.log(namePro.toUpperCase());
410
if(userInput.toUpperCase() == namePro.toUpperCase()){
511
console.log('user exists');
6-
}
12+
} */

0 commit comments

Comments
 (0)