const f7 = () => {
let inp7 = document.querySelector('.i-7').value;
let s7 = new Set(inp7);
if (inp7.length == s7.size && inp7.length > 6) {
document.querySelector('.out-7').textContent = 1;
}
else {
document.querySelector('.out-7').textContent = 0;
}
}
document.querySelector('.b-7').onclick = f7;
function f19() {
let inp19 = document.querySelector('.i-19').value;
let out19 = '';
for (let key in a19) {
for (let i = 0; i < a19[key].length; i++) {
if (a19[key][i].toLowerCase() == inp19 || a19[key][i] == inp19) {
out19 += key;
}
else {
out19 += '';
}
}
}
document.querySelector('.out-19').innerHTML = out19;
}
document.querySelector('.b-19').onclick = f19;
function f9() {
let inp9 = document.querySelector('.i-9').value;
let out9 = '';
for (let key in a9) {
if (inp9 == a9[key]) {
out9 += key + ' ';
}
}
document.querySelector('.out-9').innerHTML = out9;
}
document.querySelector('.b-9').onclick = f9;
let d19 = ['Your', 'payment', 'method', 'will', 'automatically', 'be', 'charged', 'in', 'advance', 'every'];
let maxString = '';
let out19 = document.querySelector('.out-19');
function f19() {
for (i = 0; i < d19.length; i++) {
if (d19[i].length > maxString.length) {
maxString = d19[i]
}
}
out19.innerHTML = maxString;
}
document.querySelector('.b-19').onclick = f19;