@ArielLeslie/

GlassRealisticShoveler

JavaScript

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6473718066910243","path":"main.js","file":{"path":"main.js","content":{"asEncoding":{"base64":"dmFyIHN0cmluZyA9ICJoaSI7DQoNCnZhciBzdHJBcnIgPSBzdHJpbmcuc3BsaXQoIiIpOw0KY29uc29sZS5sb2coJ3N0ckFyciBhZnRlciBzcGxpdDogJyArIHN0ckFycik7DQoNCnZhciByZXZBcnIgPSBzdHJBcnIucmV2ZXJzZSgpOw0KY29uc29sZS5sb2coJ3JldkFycjonICsgcmV2QXJyKTsNCmNvbnNvbGUubG9nKCdzdHJBcnIgYWZ0ZXIgcmV2ZXJzZTogJyArIHN0ckFycik7DQoNCg0KaWYgKHN0ckFyci5qb2luKCIiKSAhPT0gcmV2QXJyLmpvaW4oIiIpKSB7DQogICAgLy9zb21ldGhpbmcNCn0NCg=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var string = "hi";

var strArr = string.split("");
console.log('strArr after split: ' + strArr);

var revArr = strArr.reverse();
console.log('revArr:' + revArr);
console.log('strArr after reverse: ' + strArr);


if (strArr.join("") !== revArr.join("")) {
    //something
}
Native Browser JavaScript