Vivek Vijayan

As far we used, we make comment section for having a unexecutable sentence. But we have an option to make a set of comments to be an executable statement as well.

We can use this option only in // comments, not in /* */

// executable comment allowed here

The key to use such option is to add an escape sequence called \u000d followed by the statement to be executed. so that as part of execution flow, the hidden commented snippets will be executed.

// I want change \u000d x = 10; 

Here x = 10 will be executed as part of comment.

Code:

--

--

Vivek Vijayan

Vivek Vijayan

I’m a Computer Science Engineer and Full stack developer, helping programmers in getting their projects fulfilled ✨ Founder @turnscript