136 читали · 2 года назад
Как открыть консоль разработчика в браузере?
Консоль разработчика позволяет выполнять js код прямо в браузере, и по сути вы можете сделать что угодно, "не отходя от кассы". Так как открыть ? Chrome: Ctrl+Shift+J (для Windows / Linux) или Cmd+Opt+J Firefox:...
2 года назад
Introduction to JavaScript
Console The console is a panel that displays important messages, like errors, for developers. Much of the work the computer does with our code is invisible to us by default. When we write console.log() what we put inside the parentheses will get printed, or logged, to the console. It’s going to be very useful for us to print values to the console, so we can see the work that we’re doing. console.log(5); // 5 printed Comments There are two types of code comments in JavaScript: // Prints 5 to the console console.log(5); console.log(5);  // Prints 5 console.log(/*IGNORED!*/ 5);  // Still just prints 5 Data types: The first 6 of those types are considered primitive data types...