Print TEXT in JavaScript
In C language we use printf in C++ we use cout but while coming to JavaScript we use the Following commands to print anything on the Screen :
1 document.write()
The Sytnax of this is document.write(Z) , if Z holds any value it displays that value
2 Window.alert()
Alert means it gives a Pop-up and prints what ever text we placed in the Paranthesis
3 console.log()
This Command writes into the browser console ...
1 document.write()
The Sytnax of this is document.write(Z) , if Z holds any value it displays that value
2 Window.alert()
Alert means it gives a Pop-up and prints what ever text we placed in the Paranthesis
3 console.log()
This Command writes into the browser console ...
Comments
Post a Comment