I've just started learning Javascript, and I was wondering how you would interpret the bolded section in this code fragment, what is the purpose of the backslash in and around the "color:magenta" line? Does it operate the same way if it were used in Java, i.e. inserting something extra in a string?
<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
Question
lemonbear
Hi guys,
I've just started learning Javascript, and I was wondering how you would interpret the bolded section in this code fragment, what is the purpose of the backslash in and around the "color:magenta" line? Does it operate the same way if it were used in Java, i.e. inserting something extra in a string?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts