Review the following code:
let msg1 = 'hello'; let msg2 = msg1.slice(-1); console.log(msg2 ? msg2 : msg2 + msg1);
What will appear on the console as a result?
hello
ohello
o
h
More Questions: JavaScript Essentials 1 – JSE1: Final Test
Please login or Register to submit your answer