When i run the last of my code, leo doesn’t appear on my Webview.what’s the problem in your opinion? Thanks a lot
Welcome to the forums!
innerHTML, you missed the
Now you’ve accidentally duplicated the ending, instead of
innerHTML, you’ve got
Line 19 should be
yourPlayground.innerHTML = '<h1>Leo</h1>';.
When I fork your repl and run the code there are errors. Opening the webview in a new tab and using web tools/inspect (F12) shows this:
To resolve the error you need to set up what yourPlayground refers to e.g.
yourPlayground = document.documentElement yourPlayground.innerHTML='<h1>Leo</h1>'
you can prevent such implicit mistakes by using TypeScript