examples/todo/js/modules/footer.js
function(itemsLeft) {
			var itemText = itemsLeft === 1 ? 'item' : 'items';

			moduleEl.querySelector('.items-left-counter').textContent = itemsLeft;
			moduleEl.querySelector('.items-left-text').textContent = itemText + ' left';
		}
function(itemsLeft) {
			var itemText = itemsLeft === 1 ? 'item' : 'items';

			moduleEl.querySelector('.items-left-counter').textContent = itemsLeft;
			moduleEl.querySelector('.items-left-text').textContent = itemText + ' left';
		}
function ( itemsLeft ) { var itemText = itemsLeft === 1 ? 'item' : 'items' ; moduleEl . querySelector ( '.items-left-counter' ) . textContent = itemsLeft ; moduleEl . querySelector ( '.items-left-text' ) . textContent = itemText + ' left' ; }
Updates the displayed count of incomplete tasks
@param {number} itemsLeft # of incomplete tasks
@returns {void}
Updates the displayed count of incomplete tasks