-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4.js
More file actions
20 lines (20 loc) · 784 Bytes
/
4.js
File metadata and controls
20 lines (20 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
document.getElementById('input').addEventListener('keyup',()=>{
const input = document.getElementById('input').value;
const result = document.getElementById('result');
const inputValue = input.toLowerCase();
if (inputValue === 'brilliant') {
result.innerText = 'The Student is more active and sincere.';
}
else if(inputValue === 'better'){
result.innerText = 'The Student is trying to join extra curricular activities.';
}
else if(inputValue === 'good'){
result.innerText = 'The Student is learning about extra curricular activities';
}
else if(inputValue === 'nothing'){
result.innerText = 'The Student is not joining any extra curricular activities Yet';
}
else{
result.innerText = '';
}
})