Skip to main content

Ivan Teoh

Something personal yet public

171-exercise64.js

(Source)

1
2
3
4
5
6
7
function tag(name, content, attributes) {
  return {name: name, attributes: attributes, content: content};
}

function image(path) {
  return tag("img", [], {src: path});
}