You are on page 1of 1

You tube video playlist Javascript Basics by sentdex

Chp 1 : Introduction- Javascript Programing Basics p. 1


Command : document.write(“text”) :
Here document is the object and write is the method
Command : console.log(“text”);
It logs the text in the console of our browser
Command : console.warn(“text”);
It logs the warning text in the console of our browser
Command : console.error(“text”);
It logs the error text in the console of our browser.
Command : document.getElementById(“id_name”).attribute = “value”;

You might also like