$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · easy · #59
What is the output?
console.log('abc'.slice(-2));
bc
ab
c
abc
A negative start counts from the end, giving the last two characters.
Play Problem Solving ▸
◂ #58
all Problem Solving — predict the output questions
#60 ▸