File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,4 +45,4 @@ console.log(result);
4545for (let lst in list) {
4646 console.log(list[lst]);
4747}
48- */
48+ */
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ example2 = () => {
3030 promise . then ( function ( ) {
3131 console . log ( 'Success, you got a new job.' ) ;
3232 } ) . catch ( function ( ) {
33- console . log ( 'Some error has occured' ) ;
33+ console . log ( 'Some error has occured. ' ) ;
3434 } ) ;
3535}
3636
@@ -46,7 +46,7 @@ example3 = () => {
4646 reject ( ) ;
4747 }
4848 } ) . then ( function ( ) {
49- console . log ( "I have completed learning programming." ) ;
49+ console . log ( "I've completed learning programming." ) ;
5050 } ) . catch ( function ( ) {
5151 console . log ( "I haven't completed learning JS programming." ) ;
5252 } )
Original file line number Diff line number Diff line change 1- var option = 3 ;
1+ let option = 3 ;
22
33switch ( option ) {
44 case 1 :
@@ -20,4 +20,3 @@ switch (option) {
2020 console . log ( "You selected option 6." ) ;
2121 break ; // technically, not needed
2222}
23-
You can’t perform that action at this time.
0 commit comments