import React from 'react' // import tr from './End-Image01.jpg'; // import './End.css' import 'bootstrap' import 'bootstrap/dist/css/bootstrap.css'; // import { Link } from 'react-router-dom'; function End() { let a = [] for (let i = 0; i < 3; i++) { if (localStorage.getItem('답' + (i + 1)) === localStorage.getItem('정답' + (i + 1))) { a[i] = 1 localStorage.setItem('채점' + (i + 1), 'O') } else { a[i] = 0 localStorage.setItem('채점' + (i + 1), 'X') } } return ( <>
이름 | {localStorage.getItem('name')} |
---|---|
1번 | {localStorage.getItem('채점1')} |
2번 | {localStorage.getItem('채점2')} |
3번 | {localStorage.getItem('채점3')} |
총점 | {a[0] + a[1] + a[2]} |
Quiz 1 : {localStorage.getItem('채점1')}
Quiz 2 : {localStorage.getItem('채점2')}
Quiz 3 : {localStorage.getItem('채점3')}
Total Score : {a[0] + a[1] + a[2]}
합격인지 아닌지 써주자