A Pen by Anonasaurus Rex.
function track(name, properties) {
$('#console').html("Tracked a payment for " + properties.price + "(" + properties.from + " -> " + properties.to + ")");
}
// There are errors below, fix them (you'll know it's working when you see something in the white area at the bottom of the window)
track('payment", {
price: $1000,
from: 'billy';
to: "lita".
};
<p id="console">
</p>