“Konsola JS” Kod odpowiedzi

afficher une zmienna dans la konsole JavaScript

console.log("Kiwi");
>> Kiwi
console.log(3+3);
>> 6
var fruit = "kiwis";
var mavariable = "J'aime les "+fruit;
console.log(mavariable);
>> J'aime les kiwis
Shy Starling

Konsola JavaScript

// our string
let string = 'ABCDEFG';

// splits every letter in string into an item in our array
let newArray = string.split('');

console.log(newArray);
Defeated Dog

Konsola JS

   this is the console
Silly Snail

Konsola JS

console.log("Text"); //Shows some text in the console.
console.warn("Warning!"); //Displays a Warning in the console
console.error("Error!"); //Displays an Error in the console.

//Example (On Value Displays)
var Value = 69;
console.log(Value); //Displays '69' in the console.
console.log("The Value Is " + Value + "!"); //Displays 'The Value Is 69!' in the console.
Determined Programmer

Do czego pracuje konsola w JS

The Console can be used to log information as part of the JavaScript development process, as well as allow you to interact with a web page by carrying out JavaScript expressions within the page's context. Essentially, the Console provides you with the ability to write, manage, and monitor JavaScript on demand
Smoggy Skunk

Odpowiedzi podobne do “Konsola JS”

Pytania podobne do “Konsola JS”

Więcej pokrewnych odpowiedzi na “Konsola JS” w JavaScript

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu