Note that alphabet[4].charCodeAt()
gives the ascii value of the 5th element of the string called alphabet
Note that String.fromCharCode(65)
gives the letter "A"
printEachLetter()
to print out each character in the string and its ascii value on a separate line. A: 65
B: 66
C: 67
totalOfASCII()
to return a total of all of ALL the ascii values of the characters in the string Total of ascii codes is: 198
countLetter()
to return a count of how many letter "a"s there are in it.The number of a characters are: 4
Provide evidence of your code running Exercise 1 here:
Provide evidence of your code running Exercise 2 here:
Provide evidence of your code running Exercise 3 here:
Provide evidence of your code running Exercise 4 here: