Skip to content

Commit b4892ee

Browse files
committed
Using template literal
1 parent 52a74a8 commit b4892ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

09-behavioral-design-patterns/02-state-failsafe-socket/failsafeSocket.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class FailsafeSocket {
1515
}
1616

1717
changeState (state) {
18-
console.log('Activating state: ' + state)
18+
console.log(`Activating state: ${state}`)
1919
this.currentState = this.states[state]
2020
this.currentState.activate()
2121
}

0 commit comments

Comments
 (0)