ЛХ
Size: a a a
ЛХ
П
ЛХ
ЛХ
П
SO
ЛХ
SO
ЛХ
SO
DT
DT
DT
ЛХ
VL
class Info{
constructor(name, surname, age){
this.name = name;
this.surname = surname;
this.age = age;
}
}
let inp = document.querySelector('INPUT');
let infoFunc = (n, s, a) =>{
let info = new Info(n, s, a);
console.log(info);
}
inp.addEventListener("keypress", function(event) {
if (event)
infoFunc(inp.value);
});
4
class Info{
constructor(name, surname, age){
this.name = name;
this.surname = surname;
this.age = age;
}
}
let inp = document.querySelector('INPUT');
let infoFunc = (n, s, a) =>{
let info = new Info(n, s, a);
console.log(info);
}
inp.addEventListener("keypress", function(event) {
if (event)
infoFunc(inp.value);
});
VL