Hey ninjas, in this JavaScript lesson I’ll be showing you a couple of quick and easy ways to test your JavaScript code and variable values. These include the Console.log method, as well as the Document.write method.
You don’t need to worry too much about the Document and Console objects so much yet, as we’ll be covering objects and methods in more detail later in the playlist.
As always, any questions, ask away :).
SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1
========== JavaScript for Beginners Playlist ==========
========== CSS for Beginners Playlist ==========
========== HTML for Beginners Playlist ==========
========== The Net Ninja ============
For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk
========== Social Links ==========
Twitter – @TheNetNinja – https://twitter.com/thenetninjauk
Original source
15 responses to “JavaScript Tutorial For Beginners #10 – Logging to the Console”
document.write doesn't work anymore as of 2019, I know this is a little older what would you use now?
Thanks bro , You make javascript easier
No semicolons ?
this course is much better than paying for one course in any plattaform 😀
Sir , Why we are not adding these -> " " in parenthesis ()????
Excellent videos congrantulations and greetings from Colombia in South America,
this sound "whaaaa" makes it really special))
Isn't typing the console.log() method redundant when you're already entering JavaScript in the console? For example, after assigning a value to myVar, all you have to do is type myVar and hit enter, and it will log the value of myVar to the console.
Great tutorials, thank you. TT
in my code only document.write is working console.log is not working ???
here is my code….
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<h1>fucking</h1>
<p>hello madar chos</p>
<script>
var app = "vikky";
document.write(app);
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<h1>fucking</h1>
<p>hello madar chos</p>
<script>
var app = "vikky";
console.log(app);
</script>
</body>
</html>
Thanks a lot, NetNinja!
This is the most simplest and easy to learn tutorial for java script. Thank you so much…
How to add a new line in Document?
amazing tutorial ,thanks ,
Wonderfull