Sign in
Log inSign up

How do we declare multiple values to the same variable?

Subho Karmakar's photo
Subho Karmakar
·Sep 17, 2019

I want to declare multiple baseUrl here to a single variable for my User Search Bar -

const baseUrl = host:8082/user/phone and host:8082/user/email

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2025 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct