let str = "12345.00";
str = str.slice(0, -1);
console.log(str);
let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);
var str = "Hello TecAdmin!";
var newStr = str.slice(0, -1);
let str = "12345.00";
str = str.slice(0, -1);
console.log(str);
let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);
var str = "Hello TecAdmin!";
var newStr = str.slice(0, -1);
var array = [1, 2, 3, 4, 5, 6];
array.pop();
console.log(array);
//Output in console section:
//[1, 2, 3, 4, 5]
array.pop(); //returns popped element
//example
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.pop(); // fruits= ["Banana", "Orange", "Apple"];
var colors = ["red","blue","green"];
var green = colors.splice(-1,1); //colors is now ["red", "blue"]
var colors = ["red","blue","green"];
var green = colors.splice(-1,1); //colors is now ["red", "blue"]
array.pop()
array.splice(-1,1)
array.splice(-1,1)
let numbers = [1, 2, 3];
numbers.pop();