I was asking myself which syntax is lighter or is there no differences between :
const html = '
<div class="container">
<div>
<input type="text" placeholder="login" />
</div>
<div>
<input type="password" placeholder="password" />
</div>
</div>
'
$('#global_container').append(html)
and this :
const html =
'<div class="container">'
+ '<div>'
+ '<input type="text" placeholder="login" />'
+ '</div>'
+ '<div>'
+ '<input type="password" placeholder="password" />'
+ '</div>'
+ '</div>'
$('#global_container').append(html)
In my project, I need to add a huge amount of html if the user press de modify button. That's why I was wondering how do I need to write my html code in my js file.