for (var i = 0; i < arr.length; i++) {
(function(i) {
// asyncFunction(i);
})(i);
}
$('.wrapper').on('click', 'button', function(event) {
$(event.delegateTarget).addClass('selected');
});
"слово слово2 слово3".replace(/ [\s\S]+/, '');
li:hover {
background: black;
}
li:hover a {
color: white;
}
var cost = document.getElementById('cost');
var count = document.getElementById('count');
var result = document.getElementById('result');
count.addEventListener('change', function() {
result.textContent = parseInt(count.value, 10) * parseFloat(cost.textContent);
});