Created
October 16, 2019 13:41
-
-
Save pmurias/ac109c38165187e5550bd6906f103f04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span id='greeting'></span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $document = EVAL(:lang<JavaScript>, 'return document'); | |
my $greeting = $document.getElementById('greeting'); | |
my $hello = $document.createElement('span'); | |
my $world = $document.createElement('span'); | |
$hello.appendChild($document.createTextNode('Hello ')); | |
$world.appendChild($document.createTextNode('World')); | |
$greeting.appendChild($hello); | |
$greeting.appendChild($world); | |
$hello<style><color> = 'red'; | |
$world<style><color> = 'green'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment