practice? 
                  
                  
                  
                  
                  
                  
                  
                  
                  $("#solution").html(`
                  
                  
                    <div class="soln-header">
                  
                  
                        Solution
                  
                  
                    </div>
                  
                  
                    <div class="card m-b-sm b-r-8 p-md border-t-primary card__shadow">
                  
                  
                        <p class="solution no-margin">
                  
                  
                            ${solution}
                  
                  
                        </p>
                  
                  
                    </div>
                  
                  
                  `);writing entire html blocks as string and inserting into html ?
                  
                  
                  or should I be using something like createElement to generate this block ?
                  
                  
                
bad practice, yes use createElement
Обсуждают сегодня