01. Articles List -LAB: DOM - в Judge дава само 50/100
Здравейте,
малко късно питам, за първата задача 01. Articles List от LAB: DOM , не разбирам защо ми дава само 50/100. Някой може ли да помогне?
function createArticle() {
let titleArticle = document.getElementById('createTitle');
let textArticle = document.getElementById('createContent');let articleCreate = document.createElement('article');
let section = document.getElementById('articles');
section.appendChild(articleCreate);let h3Create = document.createElement('h3');
let pCreate = document.createElement('p');
articleCreate.appendChild(h3Create);
articleCreate.appendChild(pCreate);if (titleArticle.value != '' && textArticle.value != ''){
h3Create.innerHTML = titleArticle.value;
pCreate.innerHTML = textArticle.value;}
titleArticle.value = '';
textArticle.value = '';
}
Мерси много!