Hi guys Im terrible at JS. Im trying to create an object and get this error.
unexpected token identifier
Here is my code:
var person = new Object();
person.\$header = \"<div class=\"clearfix floatbox_cap\"><h3 class=\"floatbox_title\"><span>Crop Avatar</span></h3><div class=\"ow_box_cap_icons clearfix\"><a title=\"close\" class=\"ow_ic_delete close\" href=\"javascript://\"></a></div></div>\";
person.\$body = \"width: 749\";
document.avatarFloatBox = person;
created
last reply
- 7
replies
- 752
views
- 3
users
Level up your JavaScript skills with ‘Modern JavaScript’ - Free.
Package management, linting, transpilation, module bundling, minification, source maps, frameworks, unit testing, and more. We wrote this book for any intermediate JavaScript developer looking to go to the next level.