Vanilla JavaScript is a name to refer to using plain JavaScript
without any additional libraries like jQuery.
VanillaJS === Plain `JavaScript`
(function () {
console.log('test');
})();
//or simple
(() => {
console.log('test');
})();
<button onclick="toggleDiv()">Toggle Div</button>
<div id="myDIV" class="hidden">
This is my DIV content.
</div>
<style>
.hidden {
display: none;
}
</style>
<script>
function toggleDiv(){
document.querySelector('#myDIV').classList.toggle('hidden');
}
</script>