I'm software developer working to solve problems and create robots to solve problems and create robots to solve problems and create robots to... yeah I really love recursion...
Other/Info: The above code execute console.log command for each number. And yes, this is compiled on JSFuck based on the original code:
var i;
for (i = 1; i <= 100; i++){
var fb = 0;
if (i % 3 == 0){
console.log("Fizz");
fb = 1;
}
if (i % 5 == 0){
console.log("Buzz");
fb = 1;
}
if (fb == 0) console.log(i);
}
Trying to decode the first snippet on JSUnFuck will likely to cause browsers to hang.
Interestingly, this one can be exported to C with minimal modifications:
#include <stdio.h>
int main(){
int i;
for (i = 1; i <= 100; i++){
int fb = 0;
if (i % 3 == 0){
printf("Fizz");
fb = 1;
}
if (i % 5 == 0){
printf("Buzz");
fb = 1;
}
if (fb == 0) printf("%d", i);
printf("\n");
}
}
JavaScript should be welcoming to my folks who are currently learning C thanks to similarity in syntaxes. (If you're reading this, good luck in facing your mid-term exams next week!)
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.
Language: JavaScript
Code: gist.github.com/reinhart1010/d2b81...
Other/Info: The above code execute
console.log
command for each number. And yes, this is compiled on JSFuck based on the original code:Trying to decode the first snippet on JSUnFuck will likely to cause browsers to hang.
Interestingly, this one can be exported to C with minimal modifications:
JavaScript should be welcoming to my folks who are currently learning C thanks to similarity in syntaxes. (If you're reading this, good luck in facing your mid-term exams next week!)