<script> extern Inhalt anzeigen
bearbeitet von Gunnar Bittersmann@@Henry
> ~~~
> <script>
> var a = 123;
> var b = 77;
> alert(a+b);
> // gewöhne ich mich auch nie dran, dass js + für stringverkettung und mathe zugleich ist
> </script>
> ~~~
Dann verwende doch für Strings ``alert(`${a}${b}`)``{:.language-js}.
Bzw. ``console.log(`${a}${b}`)``{:.language-js}, aber das ist eine andere Diskussion.
😷 LLAP
--
*“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.”*{:@en} —John Lennon
{:@en}