Generation

generate functionThu, 05 Jan 2023

find the last digit of pi

Script // function defination function lastDigitOfPi() { return 3.141592653589793.toString().slice(-1); } // function call lastDigitOfPi() // 3

Questions about programming?Chat with your personal AI assistant