Data Structure with JS

Run Settings
LanguageJavaScript
Language Version
Run Command
const strings = ['a','b','c','d']; //push strings.push('e'); // O(1); //pop strings.pop(); //O(1) //shift strings.unshift('x');//O(n); //splice strings.splice(2,0,'splice'); //O(n/ 2); => worst case O(n); //how does it do //In order to change the index, need to loop the array. console.log(strings);
Editor Settings
Theme
Key bindings
Full width
Lines