console.log value code example
Example 1: js console log input value
<input type="text" placeholder="name" id="uname" />
<input type="button"value="submit" onclick="send()" />
let uname = document.querySelector("#uname");
function send() {
console.log(uname.value);
}
Example 2: javascript log to console
const varName = 'this variable';
console.log(varName);
Example 3: console.log
console.log("");
Example 4: console.log
var players = ['Jim', 'Shawna', 'Andrew', 'Lora', 'Aimee', 'Nick'];
console.log(players);