चर्चा » विकास

Setting function to variable

Setting function to variable

The script below use to work but now it doesn't. Can someone tell me why it fails and how I can get it working. Thanks

log.info = console.info;
log.log("TEST");
woxxomनियामक
§
पोस्ट केले: 2015-05-19
log = console.log.bind(console);
log("TEST");

This works if it's what you want to do.

Thank you. Works well.

उत्तर पोस्ट करा

उत्तर पोस्ट करण्यासाठी साइन इन करा.