import React from 'react' // import { Link } from 'react-router-dom'; function End() { let k = [] for (let i = 0; i < 3; i++) { if (localStorage.getItem((i+1) + '번문제답') === localStorage.getItem((i+1) + '번문제정답')) { alert('정답입니다.') k[i] = ['O', 1] } else { alert('오답입니다.') k[i] = ['X', 0] } } return ( <>
-채점표-

이름 : {localStorage.getItem('name')}

Quiz 1 : {k[0][0]}

Quiz 2 : {k[1][0]}

Quiz 3 : {k[2][0]}

Total Score : {k[0][1] + k[1][1] + k[2][1]}

수고하셨습니다.

) } export default End;