9 questions
Hello, I'm starting to learn JavaScript.I started learning on the online learning site, but the lessons were divided between ES6 and ES5.If you want to learn from now on, do you only need to learn ES6...
I can now use calss from es6, but please tell me how to use it after writing a class in another file like c#.(Environment is running on command prompt with node.js) Multipost
const Message=props=>div>{props.msg}</div>and function Message(props){ return( <div>{props.msg}</div> )}Is the same?Can I check somewhere?
module.exports={ add:(value1,value2) => return value1+value2 }When I wrote it like this, I got an error, but I don't know why.I turned off the return, but I don't know why it shouldn't be returne...
//./hoge.jsclass HOGE {}class FUGA {}classPIYO{}↑Create a file like this//./fuga.jsimport* from './hoge';// ↑↓ Either way is possibleimport {HOGE, FUGA, PIYO} from 'hoge';↑ I would like to be able to ...
The value of the property does not change to 5 in the code below:class TestClass { constructor(prop){ this.prop = prop; TestClass.validateProp(prop); // For example, prop must be an integer with a min...
Bundle error while setting up development environment using es6.What's the problem?(Crying)
The work environment is NodeJS v8, KoaJS, SequelizeJS (MySQL). First of all, I wrote the code like first. .getUserByUserId() is a method for checking ID duplication. If you already have duplicate IDs,...
Hello, nice to meet you.I'm studying the arrow function of ES6.There was a code example below, saying, The arrow function can also be used as an immediate execution function.const person = ( name =>...
© 2024 OneMinuteCode. All rights reserved.