Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.78 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.78 KB
JavaScript

📖 Style Guide

https://developer.mozilla.org/en-US/docs/MDN/Guidelines/Code_guidelines/JavaScript

https://google.github.io/styleguide/jsguide.html

https://javascript.info/coding-style

Tools: https://eslint.org/

Deep Copy - String

copied_string = (" " + original_string).slice(1);

Console

Method Description
log() Log
error() Log error
warn() Log warning
clear() Clear the console
time(timer_name: string) Start timer "timer_name"
timeEnd(timer_name: string) End timer "timer_name" and log the recorded time
table({key: value}) Log as a table to console
count(label: string) Log the number of times the "label" counter has been called
group(label: string) Group future console messages with "label"
groupEnd(label: string) Finish the group "label"
groupCollapsed(label: string) Group future console messages with "label", collapsed by default