From e6af9b499bb5cb2aed874201260f6b38b9995a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=E4=BD=99=E6=80=9D=E7=83=A8?= Date: Wed, 17 Aug 2016 20:39:40 +0800 Subject: [PATCH] Fix input string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit input 缺少右括号导致程序运行不正确 --- .../1.3-bags-queues-ans-stacks/evaluate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/chapter-1-fundamentals/1.3-bags-queues-ans-stacks/evaluate.js b/chapters/chapter-1-fundamentals/1.3-bags-queues-ans-stacks/evaluate.js index 675b8c3..9e97471 100644 --- a/chapters/chapter-1-fundamentals/1.3-bags-queues-ans-stacks/evaluate.js +++ b/chapters/chapter-1-fundamentals/1.3-bags-queues-ans-stacks/evaluate.js @@ -1,6 +1,6 @@ console.log('evaluate:') /* input start */ -var input = '( 1 + ( ( 2 + 3 ) * ( 4 + 5 ) )'; +var input = '( 1 + ( ( 2 + 3 ) * ( 4 + 5 ) ) )'; input = input.replace(/\s/g, '').split(''); /* input end */ console.log('> input: ' + input.join(' '));