Arduino Wait Function In Javascript Geeksforgeeks