0

I want to print triangular image using javascript. Using HTML it will come like this

All Coupons & Deals ▼

Using JavaScript I did not get an any output

textContent="All Coupons & Deals ▼  ";
Praveen Kumar Purushothaman
  • 160,666
  • 24
  • 190
  • 242
Rijo
  • 2,761
  • 3
  • 26
  • 52

1 Answers1

2

Either use innerHTML (coz that's not a text):

document.getElementById("myDiv").innerHTML="All Coupons & Deals ▼";
<div id="myDiv"></div>

Or try it with the Unicode:

document.getElementById("myDiv").textContent = "All Coupons & Deals ▼";
<div id="myDiv"></div>
Praveen Kumar Purushothaman
  • 160,666
  • 24
  • 190
  • 242