DEV Community

Black-Thor
Black-Thor

Posted on • Updated on

[week1] Days 4 - Mini project around js and regex

Mini project

Today I made a password verification by following online guides and from the knowledge acquired during the learning of regex , u can find it on codepen.io

I find a real problem

While doing this project I realized how difficult it is to initialize a project so I'm writing it down for later in order to improve this aspect

freeCodeCamp Debbuging

On the freecode camp of the day I discovered a new way to use console to debug my programs

  • console.clear()
    Cleans the contents of the console

  • console.log(..)
    Allows you to display messages in the console. You can use wildcards and additional arguments with this method.

  • console.debug(..)
    You can only see the contents printed by the console.debug(..) method if your Console is set to Log-Level="debug". By default, Log-Level="log"

console.debug(obj1 [, obj2, ..., objN]);
console.debug(message [, subst1, ..., substN]);
Enter fullscreen mode Exit fullscreen mode
  • console.info(..) Displays an informative message in the browser console. In Firefox and Chrome, a small i icon is displayed in front of the message.
var myObj = {firsname:"John", lastname:"Doe"};
console.info(myObj);/*{firsname: 'John', lastname: 'Doe'}
firsname: "John"
lastname: "Doe"*/
Enter fullscreen mode Exit fullscreen mode
  • console.warn(..) Writes in the browser console the content of the object in the form of a warning with a warning pictogram in front of the line.
console.warn("First warning");
console.warn("Second warning");
Enter fullscreen mode Exit fullscreen mode
  • console.error(..)

Writes in the browser console the content of the object in the form of a error with a warning pictogram in front of the line.

console.warn("First error");
console.warn("Second error");
Enter fullscreen mode Exit fullscreen mode

PS:

  • if you see any spelling or grammar mistakes, can you notify me (I am still improving my English) ? thank you !
  • if you have any tips for improving my post feel free to comment on the post

Top comments (0)