JavaScript HTML DOM
<!DOCTYPE html> <html> <body> <p id="output"></p> <script> const output = document.getElementById("output"); if (output) { output.textContent = "Element found and ready."; } else { console.warn("No element with id 'output' exists."); } </script> </body> </html>