javascriptCopyfunction getId() { if ( typeof getId.counter == 'undefined' ) { getId.counter = 0; } alert(++getId.counter); }