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
  • 164,888
  • 24
  • 203
  • 252
Rijo
  • 2,963
  • 5
  • 35
  • 62

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
  • 164,888
  • 24
  • 203
  • 252