From 0f248db9a1d64b5d86c9070338198363acead460 Mon Sep 17 00:00:00 2001 From: Briana Swift Date: Fri, 1 Nov 2019 09:33:54 +0100 Subject: [PATCH] make a change to prompt --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 242b710..8faa426 100644 --- a/src/index.js +++ b/src/index.js @@ -2,13 +2,13 @@ import Game from './game.js' let p1, p2 while (!p1) { - p1 = window.prompt('Enter player 1 name:') + p1 = window.prompt('Who is player 1?') } while (!p2 && p1 !== p2) { p2 = window.prompt(p1 === p2 ? `Please enter a different name than ${p1}.` - : 'Enter player 2 name:') + : 'Who is player 2?') } window.onload = () => {