es6 tag

9 questions


1 answers
95 views
0
Which should I learn, ES5 or ES6?

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...

1 years ago

2 answers
61 views
0
Use class from a different file

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

1 years ago

1 answers
41 views
0
Is the Arrow function of es6 the same as the normal function?

const Message=props=>div>{props.msg}</div>and function Message(props){ return( <div>{props.msg}</div> )}Is the same?Can I check somewhere?

1 years ago

2 answers
96 views
0
return of es6

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...

1 years ago

1 answers
47 views
0
How to use javascript export and import

//./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 ...

1 years ago

2 answers
54 views
0
ES6: How to change properties within a class

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...


2 answers
45 views
0
Bundle error while setting up development environment using es6.

Bundle error while setting up development environment using es6.What's the problem?(Crying)

1 years ago

1 answers
62 views
0
ORM: Sequelize: Error

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,...


1 answers
71 views
0
Run JavaScript Immediately Arrow Function Structure Question.

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 =>...

1 years ago

© 2024 OneMinuteCode. All rights reserved.