What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-12 22:22:04
typescript vs javascript
TypeScript adds strict typing to JavaScript. It helps to reduce the number of errors in your code. Apart from strict typing, TypeScript introduces a plethora of features like Interfaces, Mixin classes, Enums and much more, as discussed later in the article. Add solution -
PHP 2021-09-12 18:05:03
php email send smtp
<?php error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT); require_once "Mail.php"; $host = "ssl://smtp.dreamhost.com"; $username = "[email protected]"; $password = "your email password"; $port = &... Add solution -
Other 2021-09-12 17:00:02
"E: Unable to locate packet snort"
# nano /etc/apt/sources.list deb http://ch.archive.ubuntu.com/ubuntu/ saucy main restricted deb-src http://ch.archive.ubuntu.com/ubuntu/ saucy main restricted deb http://httpredir.debian.org/debian jessie main deb-src http://httpredir.debian.org/debian ... Add solution -
Javascript 2021-09-12 09:43:01
javascript use strict
//It's a new feature of ECMAScript 5. //With strict mode, you can not, for example, use undeclared variables. Insert a 'use strict'; statement on top of your script: /***START ANY JS FILE***/ 'use strict'; var a = 2; .... /***END***/ Or, insert a 'use ... Add solution -
Other 2021-09-11 14:45:04
months array
'use strict'; (function(d){ var mL = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; var mS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'N... Add solution -
Javascript 2021-09-11 00:32:01
what is the difference between javascript and java
/* JavaScript: Easier to learn and run, runs in browser, not strictly object-orientated, mainly client-side. Java: More secure, strict OOP, steeper learning curve, used literally everywhere, needs to be compiled. */ Add solution