document.getElementById('field').parentNode.classList.add("newclass");
gulp.task
function sassToCss() {
// ...
}
exports.sass = sassToCss;
foreach ($xpath->query('//a/@href') as $href) {
echo $href->nodeValue, PHP_EOL;
}
https://3v4l.org/0XlvA str = str[0].toUpperCase() + str.slice(1);
// или
str = str.replace(/^./, m => m.toUpperCase());
// или
str = Array.from(str, (n, i) => i ? n : n.toUpperCase()).join('');