Questions tagged as 'ecmascript'

2
answers

Points and commas in JS, Recommended at performance level?

I know that the use of; in JS, but for the JS interpreter that is more efficient, what do we say or not?     
asked by 15.03.2018 / 14:35
1
answer

Error compiling jsx with Browserify ReactJS

Good morning, I am totally new in the world of ReactJS. I am trying to make a trial app and I find the following. These are my files: BtnLink.jsx: var BtnLink = new React.createClass({ render : function(){ return(...
asked by 04.01.2017 / 06:24
1
answer

How can I use "let" out of a block in javascript?

I'm experimenting with JavaScript and I came across this variable scope in JavaScript, mainly with let , which is integrated in ECMAscript 6. The problem is this: I have a prompt that asks the user for their age and compares it in a...
asked by 01.12.2016 / 04:52
2
answers

Export and import modules with ES6 error?

I am trying to learn how to export and import modules in ES6 and it tells me in the console: SyntaxError: export declarations may only appear at top level of a module I'm trying something simple. I have the code so that: archivo.js e...
asked by 20.03.2017 / 01:00
1
answer

Error when running micro -p 5000 pictures.js

When I execute the command: micro -p 5000 pictures.js I get the following error ...    import {send, json} from 'micro' ^^^^^^ SyntaxError: Unexpected   import token       (Note: micro ":" ^ 6.0.2 ", node: v6.9.1) How can I so...
asked by 01.11.2016 / 23:54
0
answers

Use of fetch javascritp. And receive data with express

I have a question. You will see I am sending the data of my form with help of fetch like this: const formSignin = document.querySelector('#formSignin'); formSignin.addEventListener("submit", event => { event.preventDefault(); con...
asked by 23.01.2018 / 21:28
1
answer

access this in callback ecma6

Friends, I have the following code: Selection Object (in the method to obtain is the relevant code): class Seleccion extends React.Component{ constructor(){ super(); this.state ={ image : null, selecciones:[] }...
asked by 22.01.2017 / 16:54
1
answer

Print reports with React

Good morning, I'm practically new with this technology and well I'm doing my first steps. I am with a project for my company and I would like to know if it is possible to print certain reports directly to the printer by react. Thanks for your...
asked by 15.09.2017 / 11:24
1
answer

Different between javascript and ecmascript? [closed]

Hello friends, sorry for my ignorance in javascript but while I was reading I came across this standard and I saw that they were different, could you explain me? What is your correct difference? I would not like to be uninformed     
asked by 11.10.2016 / 04:54