This is how compiler works.
# input code if 'Unv is awesome!' print('Hello World!') # keep editing for live results
First remove comments and handle strings
if 'Unv is awesome!' print('Hello World!')
First slice the code by newlines
if 'Unv is awesome!'
print('Hello World!')
Then convert the indention to brackets
if 'Unv is awesome!' { print('Hello World!') }
Then add parentheses when needed
if ('Unv is awesome!') { print('Hello World!') }
Then Its valid JavaScript
You can contact me via ksengine.github@gmail.com
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is how compiler works.
First remove comments and handle strings
First slice the code by newlines
Then convert the indention to brackets
Then add parentheses when needed
Then Its valid JavaScript
You can contact me via ksengine.github@gmail.com