Created
April 26, 2020 12:23
-
-
Save parzibyte/d2a68fe6bb874f055a2cf7f5eaafb2f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>PHP Test</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
const miVariableEnJavaScript = "Parzibyte"; | |
// Justo aquí estamos pasando la variable ----^ | |
// Y ya la tenemos desde JavaScript. Podemos hacer cualquier cosa con ella | |
console.log("El contenido de la variable es: " + miVariableEnJavaScript) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment