javascript - What does `image: HTMLImageElement` do? -
i tried writing image: htmlimageelement
in browser console today. expected error occur, didn't.
this not declare variable var image: htmlimageelement
on typescript does, , not define property var x = { image: htmlimageelement }
does. seems nothing. syntax do?
unless within object, text followed colon in javascript labelled statement. example labelled statement have seen before is:
<a href="javascript: void(0)">
in case, javascript
label , void(0)
statement. in case, image
label , htmlimageelement
statement.
Comments
Post a Comment