Example p302-a

This example rewrites p302, but uses the template property of the options object instead of a template embedded in HTML document.

This example also shows that JavaScript template string `string` can span multiple lines in source code. This is useful to embed HTML code in JavaScript code.



Try the following

Icons made by Vitaly Gorbachev from www.flaticon.com
Icons made by Freepik from www.flaticon.com