Believe me, they add up to 6, yes 6. In all probability, you might be hearing that for the first time !
1) document.write( );
This when used on a page, overrides the whole content
2) console.log( );
Used mainly for debugging, prints in your browser’s console.
Can be used to change the content of a specific tag or class . . .
4) alert( );
Shows a popup label
5) confirm( );
Shows a label and two choices and actions decided on the choice
6) prompt( );
Asks user for input