Posts by rogomazagu • 25 points
2 posts
-
0
votes2
answers1286
viewsQ: Take variable parameter Javascript/React function
How do I take a function parameter and use it to pick up a variable? For example, in this code: import React, { Component } from 'react'; export default class Home extends Component { state = {…
-
2
votes1
answer185
viewsQ: Pass variable in Mongodb query (JAVASCRIPT)
With that consultation: const result = await Topic.find( { 'categorieName': { $regex: /^news/i } } ) I can return the categories with name news, the problem is that it is not always news, so I…