Selections, Drill 1

Write the function selectSvg so that it returns a d3 selection object which contains a selection of a single node with id svg.

<body>
  <svg id="svg">
  </svg>
  <script>
    selection = selectSvg(); // write this function
  </script>
</body>

Try it

Editor
<div style="clear:both"></div>
Messages