N
N
Natalia252017-06-19 02:04:29
JavaScript
Natalia25, 2017-06-19 02:04:29

How to work with String in Angular2?

How can I implement the following task - I have a text, I filled some words in it with spaces so that it was possible to add a hyphen when clicking (implemented). I need a way that would compare the entered hyphens with the words in check by clicking on ok and give 5 points for each correct solution. Tell. please how to compare the position of hyphens in words? Here is a working example plnkr.co/LTiI1hvx2DdVFhT4jryJ ">

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2017-06-19
@Sanasol

plnkr.co/edit/PfjPA77D5lWdbdRbF9z9
_ instead of spaces, otherwise mess.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question