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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -