scrimba
Bootcamp (HTML/CSS/JS) 2024
Bootcamp #9.5
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Bootcamp #9.5
AboutCommentsNotes
Bootcamp #9.5
Expand for more info
index.js
run
preview
console
// javascript

function myFunction() {
const msg = document.getElementById('demo');

if (document.getElementById('id1').validity.rangeOverflow) {
msg.textContent = 'Value too large';
} else {
msg.textContent = 'Value OK';
}
}

function checkEmail() {
const msg = document.getElementById('demo');
const emailNode = document.getElementById('email');
if (emailNode.validity.typeMismatch) {
msg.textContent = 'INVALID';
} else {
msg.textContent = 'VALID';
}
}
Console
/index.html
LIVE