why does an F12 of console log show it happened somewhere else

  Kiến thức lập trình

I debug javascript with console.log and lately both firefox and chrome have been showing that the statement occurred later by 5 lines.

<!DOCTYPE html>
<html>
<head> ... </head>
<body>
<script>
"use strict";

.....

line 240    console.log("drowz.length="+drowz.length);

</script>
</body>
</html>

F12 shows this logging at line 246

New contributor

weemfg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT