JavaScript Strings for Pythonistas (Fast Track) Quiz
Interactive Quiz ⋅ 10 Questions
By Stephen Gruppetta
In this quiz, you’ll test your understanding of JavaScript Strings for Pythonistas (compact).
By working through this quiz, you’ll revisit how template literals treat dollar signs
and format specs, how .slice(), .length, and the trim methods stand in for Python’s
slices, len(), and strip(), why replace() and a split() limit don’t do what
Python’s do, and what .join() and * do when you hand them text.
Most questions show a short snippet ported from Python and ask what it does in JavaScript, or which version gives the same answer as the Python script. Each one puts a Python habit in your way, so you can check that you’d now catch it. Good luck!
The quiz contains 10 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!
Related Resources
Course
JavaScript Strings for Pythonistas (Fast Track)
Port a payments team's branch-name helper to JavaScript in this faster version, and learn where Python's string habits, from slicing to split() and join(), give the wrong text.