Markup in Javascript is used to insert HTML elements in javascript. Impact Creating HTML elements in JS will decrease the readability & maintainability of code affecting reusability as well. This will break the basic principle i.e. separation of presentation and business logic. This will also lead to high memory consumption…