var res = a / 4 /* whatever */ ^^^^^^^^^^^^^^ comment #### var res = /bla \/* .*/.exec("stuff"); ^^^^^^^ not a comment