How do I disable console.log when I am not debugging? [duplicate]

I would probably abuse the short-circuiting nature of JavaScript’s logical AND operator and replace instances of: console.log(“Foo.”); With: DEBUG && console.log(“Foo.”); Assuming DEBUG is a global variable that evaluates to true if debugging is enabled. This strategy avoids neutering console.log(), so you can still call it in release mode if you really have to (e.g. … Read more

Chrome Dev Tools Issue With ES6 String Literals/Typescript

As for version 69.0.3497.100 (Official Build) (64-bit) in Ubuntu is still a bug. As a workaround you can start adding: //` to the end of lines containing templated strings, which fixes the formatting in the chrome sources tab. Here some examples of my working jsx code. In component props: <Field name={`${fields.name}[${index}].comments`}// ` component=”input” type=”text” /> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)