Enter your JS code here

1
2
3
4
5
6
7
8
9
10
11
(function() {
    'use strict';
    kintone.events.on('app.record.index.show', function(evt) {
        var unusedVar = undefinedVar;
        var button = document.createElement('button')
        button.innerHTML = kintone.app.record.get().record['hoge'].value;
    });
})();
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Review result

[ESLint] Line 5, unusedVar is defined but never used (no-unused-vars)
var unusedVar = undefinedVar;

[ESLint] Line 5, "undefinedVar" is not defined. (no-undef)
var unusedVar = undefinedVar;

[ESLint] Line 6, Missing semicolon. (semi)
var button = document.createElement('button')

Line 7, XSS Warning!!:
button.innerHTML = kintone.app.record.get().record['hoge'].value;