// Get the element
var elem = document.querySelector('#elem1');
// Create a copy of it
var clone = elem.cloneNode(true);
// Syntax:
let newClone = node.cloneNode([deep])
// Example:
let p = document.getElementById("para1")
let p_prime = p.cloneNode(true)
var original = document.getElementById("question_format");
var clone = original.cloneNode(true);
clone.removeAttribute("id");
clone.setAttribute("id", "question");
document.getElementById("testform").appendChild(clone);
const target = document.querySelector('div');
const clonedTarget = target.cloneNode();
var el = document.querySelector('div');
var foo = el.cloneNode(true);