i have created an input field but the logical OR operator is not working as intended. the code is below.
'use strict'
let search = document.getElementById('search');
console.log(search);
let link = document.getElementById('link');
console.log(link);
link.addEventListener('click', doSomething);
function doSomething(ev) {
console.log(ev.type);
console.log(ev.target);
if (search.value == 45 || 35) {
alert('hi');
} else {
alert('you');
}
}