File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 1- const DB_PASSWORD = 'password1234'
1+ const main = ( username , password ) => {
2+ console . log ( `user: ${ username } , password: ${ password } ` )
23
3- const main = ( ) => {
4- const dbConfig = {
5- host : 'localhost' ,
6- user : 'admin' ,
7- password : DB_PASSWORD ,
8- }
9-
10- connectToDataBase ( dbConfig )
11- }
12-
13- const connectToDataBase = ( dbConfig ) => {
14- console . log ( `Connecting with ${ dbConfig } ` )
4+ localStorage . setItem ( 'storedPassword' , password )
155}
Original file line number Diff line number Diff line change 1+ const DB_PASSWORD = 'password1234'
2+
3+ const main = ( ) => {
4+ const dbConfig = {
5+ host : 'localhost' ,
6+ user : 'admin' ,
7+ password : DB_PASSWORD ,
8+ }
9+
10+ connectToDataBase ( dbConfig )
11+ }
12+
13+ const connectToDataBase = ( dbConfig ) => {
14+ console . log ( `Connecting with ${ dbConfig } ` )
15+ }
You can’t perform that action at this time.
0 commit comments