\n is not working in document.write("Hello\nworld") | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

\n is not working in document.write("Hello\nworld")

1st Oct 2016, 6:02 PM
Raja Kumar
Raja Kumar - avatar
2 Réponses
+ 5
You may use <br/> instead. as document.write("Hello<br/> world");
1st Oct 2016, 6:27 PM
Mohammed Chetehouna
0
his right you cant use \n in document.write you have to put <br/> instead
1st Oct 2016, 9:30 PM
Krisna A. Haryadi
Krisna A. Haryadi - avatar