What does verify & & verify () mean?

it can"t be and. No, no, no.

Mar.07,2021

call verify if you have verify


& & the left side is implicitly converted to boolean

function verify() {
    return 123
}

let result = verify && verify();// -> true && verify() -> verify() -> 123

translated into vernacular means "execute the verify method if verify exists". & & is short-circuit writing, preceded by true to execute the following statement.


if (verify) {
    verify()
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bef3a7-31c57.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bef3a7-31c57.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?