 
  
  $('#elem').click((() => {
  // Основное тело функции будет исполнено один раз при установке обработчика
  // Таким образом создастся замыкание для переменной count
  let count = 0;
  // А вот здесь уже вернётся настоящий обработчик клика,
  // который будет вызваться при каждом нажатии
  return () => {
    count++;
    console.log(count)
  };
})());$('#elem').click(() => {
    let count = 0;
    count++; 
    console.log(count);
});Route::get('/', 'Equip@allItems');
Route::get('equipment', 'Equip@allEquipmentItems');private function allItemsInternal(string $template){
    return view($template, [
        'all' => $this->eqs(),
        'types' => $this->types()
    ]);
}
public function allItems(){
    return $this->allItemsInternal('all');
}
public function allEquipmentItems(){
    return $this->allItemsInternal('equipment');
} 
  
  var   container = $('<div></div>').addClass('container');
for(var i = 0; i<5; i++){
var tohandler = $('<div></div>').text('lol');
  container.append(tohandler);
}
$('#render').html(container); 
  
  Хотел перейти в разработку на cms. Но мне непонятно как, че, куда php писать.
 
  
  speechSynthesis.speak(new SpeechSynthesisUtterance(fform + "покрашен на зелёный цвет"));function speak(message) {
speechSynthesis.speak(new SpeechSynthesisUtterance(speak));
}speak(fform + "покрашен на зелёный цвет");      <div class="section-1" id="container" data-speed="1">function update() {
  var pos = $(window).scrollTop();
  $('.container').each(function() {
    var $element = $(this);
    var height = $element.height() - 18;
    var speed - $element.attr('data-speed');
    $(this).css('backgroundPosition', '50% ' + Math.round((height - pos*speed) * velocity) + 'px');
  });
  $('#container').css('backgroundPosition', '50% ' + Math.round(($('#container').height() - pos*speed) * velocity) + 'px' + '50% ' + Math.round(($('#container').height() - (pos*speed) / 2) * velocity) + 'px');
}; 
  
  function paster(char, count, result = '') {
  while (count--) result += char
  return result
}const paster = (char, count) => Array(count).fill(char).join('')var one = ["a", "b", "c"], two = ["d", "e", "f"];
function paster(c, iter){
	var summa="";
	for(var i = 0; i<iter; i++){
		summa = summa + c;
	}
	return summa;
}
one[0] = one[0]+paster(two[0], 10);
alert(one[0]);/* общие для всех тем */
.navigation { /* style */ }
.sect-one { /* style */ }
.project-title { /* style */ }
/* конкретные для темы evil вдобавок к общим */
body.theme-evil .navigation { /* style */ }
body.theme-evil .sect-one { /* style */ }
body.theme-evil .project-title { /* style */ }
/* конкретные для темы hacker вдобавок к общим */
body.theme-hacker .navigation { /* style */ }
body.theme-hacker .sect-one { /* style */ }
body.theme-hacker .project-title { /* style */ }
/* ..... */$(document).ready(function() {
  var themes = ['evil', 'hacker', 'basic'];
  var oldTheme = 'basic';
  themes.forEach(function(theme) {
    $('#' + theme).click(function() {
      $('body').removeClass('theme-' + oldTheme);
      $('body').addClass('theme-' + theme);
      oldTheme = theme;
    });
  });
});