Hello 

This is the day 7 of #30 days of javascrip coding, at this day I studied String Syntax And Character Escape Sequences and i learned that
1-The purpose of this part is to learn how to write string or texts and how can I ignore  specific  character In principle
2- string can be written between double qu
otes or single quotes
3- double quotes or single quotes  are originally two signs that belong to the programming language itself, but if I wanted to write String as an example sentence and there was a word in it that I would like to highlight or put between quotation marks, a problem will occur here and we will overcome it in the following lines.
4- The first solution to the problem is that if the text is written between double quotes, it must be the word that you want to highlight must be inside single quotes Here we will encounter the same problem as the first one we talked about above, and the solution will be using the \ operator Escape Its purpose is to put the \ back-slash sign Before the part, I want the programming language to ignore it completely
5-If you would like to add a back-slash sign to appears in the final result Here you must precede it with a slash-back as well, so that you know in programming language that you do not want to ignore it and want it to appear in the text

That's all I learned today 

Comments

Popular posts from this blog