core/demo.js: append indexOf test for an array
core/demo.js: append indexOf tests for the string
core/demo.js: append indexOf test for the string, if not found