Display Functions Of JavaScript
NOTE: In JavaScript we can write the statements within display functions in double inverted comma also ("") or in single inverted comma also ('') and there is no compulsory of using ; after statement as it's an optional within display functions, Output will trigger if we provide double inverted comma ("") or single inverted comma ('') or we provide ; or don't provide ; after statements within display functions.
What is meant by concatenation?
Concatenation means to merge two strings together. We can use 2 strings in JavaScript one is , and another one is + which we used in writing br statement to move into the next line.
How many types of display functions are their in JavaScript?
Ans: 5 types of display functions are their in JavaScript. They are as follows:
Type No. : 1 - document.write('') or document.write(''); or document.write("") or document.write("");
Type No. : 2 - alert('') or alert(''); or alert("") or alert("");
Type No. : 3 - console.log('') or console.log(''); or console.log("") or console.log("");
Type No. : 4 - confirm('') or confirm(''); or confirm("") or confirm("");
Type No. : 5 - prompt('') or prompt(''); or prompt("") or prompt("");
No comments:
Post a Comment