/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>>.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/eval("console\56log('JavaScript')")//)")'kcufniarb'(gol65\elosnoc"(lave
Try it online - JavaScript
Try it online - brainfuck
Try it online - JavaScript (reversed)
Try it online - brainfuck (reversed)
Explanation:
In JavaScript, the main code looks like this - an eval statement with the bf code on the left inside /* */, and the reversed JS code on the right to the right of //
/* brainfuck code */ eval("console\56log('JavaScript')") //reversed JavaScript
Note that if I used . or [] to get the log property of console, then those characters would affect brainfuck, so I used eval, and replaced the . with it's octal escape sequence.
On the brainfuck side, the code looks like this (when broken onto separate lines):
++++++++++++++++++++++++++++++++++++++++++++++++.> print 'b'
+++++++++++++++++++++++++++++++++++++++++++++++++++.> print 'r'
+++++++++++++++++++++++++++++++++++++++++++++.> print 'a'
>.+++++++++++++++++++++++++++++++++++++++++++++ print ascii(0)
>.+++++++++++++++++++++++++++++++++++++++++++++++++++ print ascii(0)
>.++++++++++++++++++++++++++++++++++++++++++++++++ print ascii(0)
A purist may claim that I've cheated because I'm outputting ascii zeros, however the effect on TIO is that these chars don't appear or do anything to the output.
I couldn't use [], because when reversed it becomes ][ which are mismatched and will give rise to an error.