From 5f9ada1d06389a0c4025da8677d39203c775991c Mon Sep 17 00:00:00 2001 From: "Brady J. Garvin" <bgarvin@cse.unl.edu> Date: Tue, 25 Oct 2022 09:09:34 -0500 Subject: [PATCH] Added one more element to illustrate a deletion at the end. --- ascent/src/features/ascent/ascent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ascent/src/features/ascent/ascent.js b/ascent/src/features/ascent/ascent.js index 53c5384..ed67838 100644 --- a/ascent/src/features/ascent/ascent.js +++ b/ascent/src/features/ascent/ascent.js @@ -5,7 +5,7 @@ import { deleteToSort } from './sortingByDeletion.js'; const SYNTAX_ERROR = 'Please enter a comma-separated list of numbers.'; export function Ascent() { - const [input, setInput] = useState('30, 10, 60, 20, 40, 50'); + const [input, setInput] = useState('30, 10, 60, 20, 40, 50, 0'); const onInputChange = (event) => setInput(event.target.value); const list = input.split(',').map((value) => value.trim()).filter((value) => value.length > 0).map(Number); -- GitLab