///_hyperscript

The log Command

Syntax

log expr [, expr]* [with expr]

Description

The log command logs an expression to console.log or whatever value is provided with the with clause.

Examples

<div _="on click log 'clicked'">Click Me!</div>

<div _="on click log 'clicked', 'clacked'">Click Me!</div>

<div _="on click log 'clicked' with console.debug">Click Me!</div>