So you keep saying. Why not work on it ? You can hardly be a web developer without knowing your way around JS.
HTML:
<-- Instead of specifying "src", give the iframe an "id" so you can access it programmatically -->
<iframe id="foobar" width="300" height="150" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
JavaScript:
// Construct multiline string using backquotes
const src =`https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3214.452269796085!2d-75.
81674272361101!3d36.325587194308675!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89a
52ed10c85b64d%3A0xcceffc4fcf0d0a15!2sOrions%20Way%2C%20Corolla%2C%20NC%2027927!5e0!3m2!1sen
!2sus!4v1709002116691!5m2!1sen!2sus`
// Assign string to the "src" attribute of the element with id "foobar"
foobar.src = src;
Most probably it will not work. Or maybe it will, despite the error. But in my humble opinion, not fixing errors is just about the worst habit a developer can have. Don't even think about it.