I am migrating my jquery code to Vanilla javascript, but I have problems with these three functions.
how to convert my jquery code to vanilla js?
(function($){
// Load
$(window).load(function() {
console.log("Load...");
});
// Scroll
$(window).scroll(function() {
console.log("Scroll...");
});
// Documente Ready
$(document).ready(function() {
console.log("Scroll...");
});
})(jQuery);
My code Vanilla JS, but I only have one:
//VANILLA JAVASCRIPT
document.addEventListener('DOMContentLoaded', function () {
console.log("¡Estamos en vivo!");
});