“consola JS” Código de respuesta

Afficher UNE Variable Dans La Console 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

consola 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

consola JS

   this is the console
Silly Snail

consola 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

¿Para qué funciona la consola en 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

Respuestas similares a “consola JS”

Preguntas similares a “consola JS”

Más respuestas relacionadas con “consola JS” en JavaScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código