let things = {
'car' : 'C:\Users\Administrator\Downloads\Sublime Text Build 3211 x64\Zadanie4\car.jpg',
'house': 'C:\Users\Administrator\Downloads\Sublime Text Build 3211 x64\Zadanie4\house.jpg',
'plane': 'C:\Users\Administrator\Downloads\Sublime Text Build 3211 x64\Zadanie4\plane.jpg'
}
document.getElementById('mybutton').addEventListener('click',()=>{
let val = document.getElementById('myinput').value.toLowerCase().trim();
if(val in things){
let img = document.createElement('img');
img.src = things[val];
document.body.appendChild(img);
} else {
alert('нэээт такой вещ!');
}
});