How it works (embedded version) 2

2) The teacher embeds the JavaScript code into the 'question text'.

Demo 2