Find the number of Chicks in a Zoo at Nth day | Function to return the number of chicks on the nth day ; Driver code
function getChicks ( n ) { let chicks = Math . pow ( 3 , n - 1 ) ; return chicks ; } let n = 3 ; document . write ( getChicks ( n ) ) ;