Questions tagged as 'ecmascript'

1
answer

Why does not Lookbehind exist in JavaScript?

I found out that there is no group construct lookbehind in Regex's made in JavaScript so I had some questions like: Why does not it exist? Home Is there any reason that makes it incompatible with language or unnecessary? If it is unneces...
asked by 25.05.2017 / 19:19
2
answers

How do I get a URL parameter in Express?

My URL is coming like this http://localhost:3000/menus/5.5 and it is bringing all the records of 5.5, but I would like the URL to be http://localhost:3000/menus?price=5.5 to have the same result, as you can see below; Thecodeth...
asked by 19.08.2018 / 10:39
2
answers

JavaScript: What is the difference between asynchronous functions and normal functions

I want to know what is the difference between using async function and function only. Of course, with asynchronous functions you can use await and they return a Promise . But is there any other effect? Is there any...
asked by 09.04.2018 / 19:10
4
answers

Query with javaScript (EcmaScript)

I have the following objects and I need to check which candidates meet the requested job. var vaga = {"language":"javascript","courses":["information systems","programming"]} var candidatos = [ {"name":"luis","course":"programming","language...
asked by 22.11.2018 / 19:18
1
answer

Return value of an input

I'm trying to get a value from an input in the sweetalert2 trying to follow this example that is there on the site const {value: password} = await Swal({ title: 'Enter your password', input: 'password', inputPlaceholder: 'Enter your pa...
asked by 14.12.2018 / 17:46
1
answer

Problems with filter in lib API QUERY PARAMS

I'm using this lib to apply filters api-query-params I need to filter for this entity; 'use strict' const mongoose = require('mongoose'); const Schema = mongoose.Schema; const schema = new Schema({ id: { type: String,...
asked by 17.08.2018 / 18:27
1
answer

What is the difference between ECMAScript and JavaScript? [duplicate]

What is the difference between ECMA Script and JavaScript? I hear a lot about the term ECMAScript, ES5 , ES6 , linked to the JavaScript language. Is there a similarity between these two terms ?     
asked by 24.08.2017 / 21:45
1
answer

Private method in JAVASCRIPT Class

How to define a private method in a JavaScript class to make the msg_privada method as private (not externally visible) without changing the notation pattern? The msg_privada method should only be accessed by the class...
asked by 10.09.2018 / 19:46
1
answer

Angular 4 Insert Items into Component

I have a component that is a menu. it is used on all pages of my application Item 01     Item 02     Item 03 But I need that if any page needs to add any more items in this menu I can! How do I do this?     
asked by 09.01.2018 / 13:11