Factsheet
Videos
What is the difference between backslash and forward slash?
Why can backslash break configuration file values?
How can I represent a single backslash in strings?
Ancient slash โ new back-slash โ disambiguating retronym forward slash
Ancient Roman coins - Solidus and Denarius.
The slash character came first, with a different formal name solidus. This name comes from Latin and was associated with coinage - hence (I guess) it's use in writing down prices in older currencies: 10/6 was quite a common notation for prices in British currency pre-decimalisation. The solidus mark probably indicates the first number is units of solidus, the second of denarius. Or in the British case: shillings and pence. Note common first letter abbreviations s and d were used in Britain (also ยฃ is L for Latin libra).
The slash (or solidus) was around for a very very long time before the reversed version was invented. The reversed version therefore acquired the more informal name back-slash to indicate a reversed form of slash.
The name "forward slash" has probably evolved since the general public started to use computer keyboards incorporating two characters that look like a slash. There was a need to disambiguate slash for people who didn't learn about computers in a formal teaching context.
The Medieval comma, Johannes Gutenberg and Aldus Manutius
The history of the slash and the comma are intimately intertwined. Both have been used to separate items of text or to separate numbers with different units. In some European countries it is normal to use the comma where others use a decimal point - to separate whole units from decimal fractions. So you might see โฌ5,60 as a price. The comma serving much the same role as the slash (or solidus) in 10/6.
It is easy to find history linking the two. For example
The [comma] mark used today is descended from a diagonal slash, or virgula suspensiva ( / ), used from the 13th to 17th centuries to represent a pause. The modern comma was first used by Aldus Manutius
I have also seen the reverse stated, that the slash is derived from the comma.
I believe that the earliest movable-type printing presses, as used by Johannes Gutenberg used commas in some situations where we would today normally use slashes. So his fonts did not have slashes, only commas.

1899 - Adler typewriter company.

- Photo ยฉ Dake - CC-by-SA 2.5
Slash, but no backslash.
C20th - Monotype corporation
Monotype Matrix Case, Arrangement No 841
No slashes or backslashes in moveable type typography? But note the comma.
1963 - Telex

ASR-32 teleprinter for Telex, CC BY 2.0, Arnold Reinhold
Slash but no backslash.
1963 - American Standard Code for Information Interchange (ASCII)
American Standards Association (ASA) X3.4 subcommittee
/ slant
...
\ reverse slant
1991 - Unicode consortium
002F / SOLIDUS
= slash, virgule
005C \ REVERSE SOLIDUS
= backslash.
So it is clear that the name backslash was introduced to indicate a novel character that was the reversed version of a long established character.
The name forward slash therefore subsequently became needed to disambiguate the name for the earlier character.
You have a stick, |, in your mind (AKA a pipe character).
\ lean it back - will fall back = back slash
/ lean it forward - will fall front = forward slash
Font features can be grouped as thickness, slant and width as in Google fonts. The natural way of writing is to lean forward which is named as slant.
Slant is one of the synonyms of slash[2,3]. Here is forward-slanted natural handwriting:

[2]: "slant, n.ยน", Oxford English Dictionary, 1st ed., Oxford: Oxford University Press, 1911.
[3]: A slash by another name: http://www.kith.org/journals/neology/2011/12/a_slash_by_any_other_name.html
\ is used as for escape sequence in many programming languages, including Java.
If you want to
- go to next line then use
\nor\r, - for tab use
\t - likewise to print a
\or"which are special in string literal you have to escape it with another\which gives us\\and\"
Imagine you are designing a programming language. You decide that Strings are enclosed in quotes ("Apple"). Then you hit your first snag: how to represent quotation marks since you've already used them ? Just out of convention you decide to use \" to represent quotation marks. Then you have a second problem: how to represent \ ? Again, out of convention you decide to use \\ instead. Thankfully, the process ends there and this is sufficient. You can also use what is called an escape sequence to represent other characters such as the carriage return (\n).
Itโs set theoretic complement and in this case it denotes the set of all reals which are not natural: $$โ \setminus โ = \{x โ โ;~x \notin โ\}$$
The backward slash is kind of the set theory equivalent of subtracting, i.e.,
$$A\setminus B=\{a\in{A}\mid a\notin{B}\}\;.$$