const $code = $("#code"); const $main = $("#main"); const $functions = $("#functions"); function addCodeToScreen({ code = "Some code", }) { let html = ``; html += `
`; html += `
${getCurrentMainLineNumber()}
`; html += `
${code}
`; html += `
`; $code.append(html); } function addFunctionToScreen({ name = "functionName", }) { } function getCurrentMainLineNumber() { // TO DO: Find a way to know in wath line the main code is return $(".code-line").length + 1; }