1289101112
anonymous No title
JavaScript
<script>console.log(111);</script>
anonymous abc
JavaScript
aaaa
anonymous No title
JavaScript
console.log(1);
anonymous No title
JavaScript
console.log(1);
anonymous No title
JavaScript
console.log(1);
anonymous No title
JavaScript
        class Person {
            constructor(firstName) {
                this.firstName = firstName;
            }
            myName() {
                return this.firstName;
            }
        }

        var name = new Person('fukushima');
        console.log(name.myName());

/*
*以下、エラー内容
*Uncaught TypeError: name.myName is not a function at top2.html:20
*/
anonymous No title
JavaScript
        class Person {
            constructor(firstName) {
                this.firstName = firstName;
            }
            myName() {
                return this.firstName;
            }
        }

        var name = new Person('fukushima');
        console.log(name.myName());

/*
以下、エラー
Uncaught TypeError: name.myName is not a function at top2.html:20
*/
anonymous No title
JavaScript
        class Person {
            constructor(firstName) {
                this.firstName = firstName;
            }
            myName() {
                return this.firstName;
            }
        }

        var name = new Person('fukushima');
        console.log(name.myName());





        class User {
            constructor(name, age) {
                this.name = name;
                this.age = age;
            }
            getName() {
                return this.name + this.age;
            }
        }

        //インスタンスを生成する
        var taro = new User('太郎', 32);
        console.log(taro.getName());
        document.querySelector("h1").innerHTML = taro.getName();
anonymous No title
JavaScript
        class Person {
            constructor(firstName) {
                this.firstName = firstName;
            }
            myName() {
                return this.firstName;
            }
        }

        var name = new Person('fukushima');
        console.log(name.myName());
anonymous No title
JavaScript
function removeAllFromState(state, name) {
    const options = resolveOption(name);
    if(!state[options.sourceName]) return;

    const source = state[options.sourceName];

    for(const name in options.indexes) {
        const index = options.indexes[name];
        const realName = options.prefix + '_' + name;
        if(!state[realName]) continue;
        const rootBucket = state[realName];
        const keys = index.keys;
        for(const id in source) {
            removeIndexMulti(source[id], id, rootBucket, keys);
        }
    }

    Vue.delete(state, options.sourceName);
}
Don't you submit code?
Submit
1289101112