JSFiddle - React, Tailwind, and code Playground
JavaScript
function test() {
// Calling the function before even declaring
callBeforeDeclare();
// This function will be hoisted to the top of the function test
// So we can call it before declaring
function callBeforeDeclare() {
console.log('hello world!');
}
}
test();