js all ways to make a string code example
Example 1: js make node with string
function htmlToElement(html) {
var template = document.createElement('template');
html = html.trim(); // Never return a text node of whitespace as the result
template.innerHTML = html;
return template.content.firstChild;
}
Example 2: how to put strings in console javascript
console.log("string");