• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
Menu
+ 2

make object which keys are from array js

How can I get from this let d = ["1", "2"] to this d = {1: false, 2: false}

javascript
30th May 2019, 12:17 PM
Ani Naslyan
Ani Naslyan - avatar
1 Réponse

Vous avez souvent des questions comme celle-ci ?

Apprenez de manière plus efficace, gratuitement :

  • Introduction à Python

    7.1M apprenants

  • Introduction à Java

    4.7M apprenants

  • Introduction à C

    1.5M apprenants

  • Introduction à HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
Activity Section in Profile has Gone
1 Votes
API
0 Votes
Which is easier to learn first between python and JS?
0 Votes
Does sololearn teaches on how to create games
0 Votes
General Inquiry
0 Votes
how to be good at coding
1 Votes
Help for roadmap
0 Votes
Why anybody does not check my new code bits it's sad for my hard work
1 Votes
Sockets, etc
0 Votes
I HAVE A PROBLEM I CANNOT ABLE TO SEND MESSAGE ANYONE AND ALSO MY MESSAGE SECTION NOT AVAILABLE "PLEASE ACTIVATE YOUR ACCOUNT
0 Votes