Question 56
What is the primary difference between let and const in ES6 JavaScript?
const creates a read-only reference to a value, preventing re-assignment, whereas let permits re-assignment within its block scope.
What is the primary difference between let and const in ES6 JavaScript?
const creates a read-only reference to a value, preventing re-assignment, whereas let permits re-assignment within its block scope.
Which PHP function destroys all data registered to a session?
session_destroy() destroys all of the data associated with the current session. It does not unset any of the global variables associated with the session.
In HTML forms, which attribute prevents a form from being submitted if a required field is empty?
The required boolean attribute specifies that an input field must be filled out before submitting the form.
Which HTTP status code represents '500'?
HTTP status code 500 is a generic error message returned when the server encounters an unexpected condition that prevented it from fulfilling the request.
In CSS, what is the default value of the display property for a <div> element?