Make a pure Javascript object from text to drag and drop : I have a Javascript drag and drop quiz for children

For example, they may have to make a sentence out of five images with “sat” “on” “the” “chair” “John”

The problem is all these images have to be specifically created.

Is there a way for pure Javascript to take the text “sat” and make it an object that could be used to drag and drop instead of images?

