Estaba buscando contenido sobre funciones nulas en javascript, pero todo lo que encontré fue muy inconsistente, alguien sabe cómo funciona o tiene algún artículo que habla de eso, porque no entendí bien MDN.
void function name1() { console.log("Into void function"); }; <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <button onclick="name1()" >Button</button> <script src="./void.js"></script> </body> </html>