JSFiddle - React, Tailwind, and code Playground

JavaScript

function foo() {
    "use strict";
    var i = 0;
    while(true) {
        function bar(what) {
            console.log(what);
        }
        var uh = function (yup) {
            console.log(yup);
        }
        if (i > 10) {
            return;
        }
        i++;
        bar("whut");
        uh("nope");
        
    }
}
foo();