const inputs = document.querySelectorAll('.input-box input'); // находим все элементы input, у которого папа имеет класс input-box
const values = [];
inputs.forEach(input => {
values.push(input.value) // пушим значение каждого инпута в массив valeus
});
function recursionIsCool() {
$(".coconvert").load("loader.php?parm=1", (data) => {
if (data) recursionIsCool();
})
if (notAlreadyExecuted) { ... } // do something
// объект который будет хранить айдишники учителей
const freq = {}
// финальный массив
const res = [];
for (const el of tasks.teacher) {
// для каждого учителя смотрим, уникальный ли он
// если учитель есть в объекте freq, значит не уникальный, едем дальше
if (el.id in freq) continue;
// в противном случае записываем айди учителя в объект и пушим объект учителя в результирующий массив
freq[el.id] = 1;
res.push(el);
}
The value attribute is a DOMString that contains the current value of the text entered into the text field. You can retrieve this using the HTMLInputElement value property in JavaScript.
let theText = myTextInput.value;
Разрешённое содержимое: Текст, допускаются экранир...
(function () {
// code here
})();
window.addEventListener('load', function() {
// code here
});
const implicitReturn = (prop) => ({ name: 'hehe', ...prop });
const explicitReturn = (prop) => {
return {
name: 'hehe',
...prop
}
};