What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-09 00:25:03
constants in Java
//A constant is a variable whose value won't change after it's been defined. private static final int OUR_CONSTANT = 1; //We make our constants static and final and give them an appropriate type, //whether that's a Java primitive, a class, or an enum. ... Add solution -
Javascript 2021-10-07 09:23:09
what is mocha js
Mocha is a JavaScript test framework! var assert = require('assert'); describe('Array', function () { describe('#indexOf()', function () { it('should return -1 when the value is not present', function () { assert.equal([1, 2, 3].indexOf(4), -... Add solution -
Javascript 2021-10-06 21:16:04
react fetch data in for loop
/* ORIGINAL CODE */ videoUrls=()=>{ let i=0; let urllist=[] for(i;i< this.state.data.length;i++){ fetch(`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${this.state.data[i].name}&key=xxxxxxxxxxx0`) .then(respo... Add solution -
Go 2021-10-05 06:01:03
how-to-prevent-google-colab-from-disconnecting
#Set a javascript interval to click on the connect button every 60 seconds. #Open developer-settings (in your web-browser) with Ctrl+Shift+I then click #on console tab and type this on the console prompt. #(for mac press Option+Command+I) function Con... Add solution -
Other 2021-10-04 06:33:03
How do you test API in your project?
I have worked on API testing in my project and I used POSTMAN for manually testing and REST ASSURED java LIBRARY for automation. I used JDBC and it is a Java-based data access technology used for Java database connectivity. It provides classes and interfa... Add solution -
Other 2021-10-02 03:53:06
qjuery
jQuery is a JavaScript library designed to simplify HTML DOM tree traversal and manipulation, as well as event handling, CSS animation, and Ajax. It is free, open-source software using the permissive MIT License. As of May 2019, jQuery is used by 73% of... Add solution