🎁
Exclusive offer
: Get EXTRA Bits and Celebrate Bybit's 6th Birthday With $2.2M Prize Pool.
Act Now!
Categories
Web3
HTML
CSS
PHP
JavaScript
SQL
Bootstrap
Solidity
jQuery
Git
Chrome DevTools
C++
Python
Other
HTML
CSS
PHP
JavaScript
SQL
Bootstrap
Solidity
jQuery
Git
Chrome DevTools
C++
Python
Other
Sign up Free
Sign up Free
Code has been added to clipboard!
Adding Text to JavaScript Elements
Example
Copy
var
textNode =
document
.createTextNode(
"Unexpected text!"
);
Related article
HOLIDAY SALE: GET 50% OFF
Save Big With DataCamp Promo Code
Days
Hours
Minutes
Seconds
GET 50% OFF