• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
- 1

Can hyphens be inserted in a JavaScript string?

Let's see if we can console log a hyphen in a string.

javascriptvariables
10th Apr 2017, 6:05 PM
Brian Montellano
Brian Montellano - avatar
1 Answer
+ 11
Yes, you can ^^
10th Apr 2017, 6:17 PM
Tashi N
Tashi N - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Footer alignment
1 Votes
For loops and multidimensional arrays
0 Votes
Web development
2 Votes
Can an image move in more than on direction with Web development?
1 Votes
Why most of the people intersted in web?
1 Votes
Incrementing problem in C++
0 Votes
cout<<"enter details for car 1:;<< endl; car1.acceptdata(); cout<<"enter details for car 2:;<< endl; car2.acceptdata();
0 Votes
Calculator
0 Votes
Suggestion of company would utilize skills while earning ?
0 Votes
I can’t chat?
0 Votes