i was looking for content about void functions on javascript but all that i found was very inconsistent, some one know's how it does work or has some article that talk about it, cause i didn't understoond MDN well.
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>