different uniqid usage

Solutions on MaxInterview for different uniqid usage by the best coders in the world

showing results for - "different uniqid usage"
Naia
11 Mar 2018
1uniqid() -> "4n5pxq24kpiob12og9"
2uniqid('hello-') -> "hello-4n5pxq24kpiob12og9"
3uniqid('hello-', '-goodbye') -> "hello-4n5pxq24kpiob12og9-goodbye"
4
5// usage with suffix only
6uniqid('', '-goodbye') -> "4n5pxq24kpiob12og9-goodbye"
7uniqid(undefined, '-goodbye') -> "4n5pxq24kpiob12og9-goodbye"