t ( " p " ) ; d 3 . s e l e c t ( " b o d y p : n t h - c h i l d ( 2 ) " ) ; d 3 . s e l e c t A l l ( " d i v " ) ; (a little overlapping with jQuery)
t A l l ( " p " ) / / s e l e c t i o n . d a t a ( [ 1 , 2 , 3 , 4 , 5 ] ) / / d a t a b i n d i n g . e n t e r ( ) / / d a t a h a n d l i n g . t e x t ( " f o o b a r " ) ; / / a c t i o n o n e n t e r
e c t A l l ( " p " ) / / s e l e c t i o n . d a t a ( [ 1 , 2 , 3 , 4 , 5 ] ) / / d a t a b i n d i n g . e n t e r ( ) / / d a t a h a n d l i n g . t e x t ( f u n c t i o n ( d ) { / / a c t i o n o n e n t e r r e t u r n d ; } ) ; Horay to closures!
t A l l ( " p " ) / / s e l e c t i o n . d a t a ( [ 1 , 2 , 3 , 4 , 5 ] ) / / d a t a b i n d i n g . e n t e r ( ) / / d a t a h a n d l i n g . t e x t ( f u n c t i o n ( d ) { / / a c t i o n o n e n t e r r e t u r n d ; } ) . o n ( " m o u s e o v e r " , f u n c t i o n ( d ) { / / r e g i s t e r e v e n t c o n s o l e . l o g ( " H u s t o n , w e h a v e a m o u s e o v e r o n : " , d ) ; } )